diff options
author | Mauro Sardara <msardara+fdio@cisco.com> | 2018-02-27 10:11:13 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2018-02-27 10:11:13 +0000 |
commit | 0ee679adaec034a8c59b2a3bb1b65cb1fb7b39e9 (patch) | |
tree | a60a994c34a4426b8d156bdf78aa60d14bdaaed1 | |
parent | cd5a042c46cdcc09025bf2476e364ae5ad340be6 (diff) | |
parent | a26778c12e24217e752fec70b659452a76883824 (diff) |
Merge "Added option in CMakeLists in order to avoid the dependencies check when building the documentation." into cframework/master
-rw-r--r-- | libparc/CMakeLists.txt | 7 |
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 |