From a26778c12e24217e752fec70b659452a76883824 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Tue, 27 Feb 2018 10:56:31 +0100 Subject: Added option in CMakeLists in order to avoid the dependencies check when building the documentation. Change-Id: I39db72a5e68815b35e584d705f86518409f5abe6 Signed-off-by: Mauro Sardara --- libparc/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libparc') diff --git a/libparc/CMakeLists.txt b/libparc/CMakeLists.txt index 3c3fa956..871cb1bd 100644 --- a/libparc/CMakeLists.txt +++ b/libparc/CMakeLists.txt @@ -3,6 +3,8 @@ project(Libparc) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") set_property(GLOBAL PROPERTY USE_FOLDERS ON) +option(DOC_ONLY "Build documentation only" OFF) + set(CMAKE_C_STANDARD 99) set(CMAKE_C_STANDARD_REQUIRED ON) @@ -44,7 +46,9 @@ set(OPENSSL_ROOT_DIR $ENV{CCNX_DEPENDENCIES}) include_directories(${PROJECT_BINARY_DIR}/parc ${PROJECT_SOURCE_DIR}) -if(COMPILE_FOR_IOS) +if (DOC_ONLY) + message("############ Skipping check of required dependencies.") +elseif(COMPILE_FOR_IOS) find_host_package( LongBow REQUIRED ) include_directories(${LONGBOW_INCLUDE_DIRS}) @@ -62,7 +66,6 @@ else() find_package ( Threads REQUIRED ) find_package ( OpenSSL REQUIRED ) - endif() set(PARC_BIN_LIBRARIES -- cgit 1.2.3-korg