aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Sardara <msardara+fdio@cisco.com>2018-02-27 10:56:31 +0100
committerMauro Sardara <msardara+fdio@cisco.com>2018-02-27 11:02:47 +0100
commita26778c12e24217e752fec70b659452a76883824 (patch)
tree45470a9e93af3e2928eda4599000c183fdd00528
parent3e39d60e44e0a9136b83233fcb2e079d65f3a482 (diff)
Added option in CMakeLists in order to avoid the
dependencies check when building the documentation. Change-Id: I39db72a5e68815b35e584d705f86518409f5abe6 Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
-rw-r--r--libparc/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
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