From a005308e657eb1053f7dd08f7a9ce7caad1cbee0 Mon Sep 17 00:00:00 2001 From: gregory guy Date: Wed, 12 Sep 2018 16:02:32 +0200 Subject: add 'WITH_ALL_OPTIONS' and 'BUILD_ALL' as building parameters for consistency Signed-off-by: gregory guy --- CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e7691d8..c3648f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,7 +39,13 @@ tde_setup_paths( ) ##### optional stuff -option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" OFF ) +option( WITH_ALL_OPTIONS "Enable all optional support" OFF ) +option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} ) + + +##### user requested modules + +option( BUILD_ALL "Build all" ON ) ##### configure checks @@ -58,7 +64,7 @@ set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" ) ##### directories -add_subdirectory( tdeio_ftps ) +tde_conditional_add_subdirectory( BUILD_ALL tdeio_ftps ) ##### write configure files -- cgit v1.2.1