summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2020-10-31 16:54:00 -0400
committerAllen Winter <allen.winter@kdab.com>2020-10-31 16:54:00 -0400
commit72655371c4e1d48bfdefa61b0a0de3d62cb3149b (patch)
tree49b9291ad9d8cbaaaf02478bdf05f778dd91b3a4
parent323ee40aa91913ac8084969f33a5ed9cf133754d (diff)
downloadlibical-git-72655371c4e1d48bfdefa61b0a0de3d62cb3149b.tar.gz
CMakeLists.txt - mark some cmake options as advanced.
The developer-only options (sanitizers, abi-dumper) are marked advanced and so it the option for using builtin timezone data. We also give a "Careful" warning for non-Windows users that choose to use the built-in timzeone data.
-rw-r--r--CMakeLists.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cf41f1b8..765602c0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -296,7 +296,8 @@ else()
set(ICAL_ALLOW_EMPTY_PROPERTIES 0)
endif()
-option(USE_BUILTIN_TZDATA "build using our own timezone data, else use the system timezone data on non-Windows systems. ALWAYS true on Windows.")
+option(USE_BUILTIN_TZDATA "(Careful) Build using libical's built-in timezone data, else use the system timezone data on non-Windows systems. ALWAYS true on Windows. Non-Windows users should know what they're doing if they choose not to use system provided timezone data. The libical project does not guarantee that the built-in timezone data is up-to-date.")
+mark_as_advanced(USE_BUILTIN_TZDATA)
if(USE_BUILTIN_TZDATA)
set(USE_BUILTIN_TZDATA 1)
else()
@@ -505,7 +506,8 @@ if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
endif()
################ Developer Options #####################
-option(ABI_DUMPER "Build for abi-dumper." False)
+option(ABI_DUMPER "(Developer-only) Build for abi-dumper." False)
+mark_as_advanced(ABI_DUMPER)
if(ABI_DUMPER)
if(CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_C_FLAGS "-g -Og")
@@ -516,7 +518,8 @@ if(ABI_DUMPER)
endif()
endif()
-option(ADDRESS_SANITIZER "Build with the address sanitizer." False)
+option(ADDRESS_SANITIZER "(Developer-only) Build with the address sanitizer." False)
+mark_as_advanced(ADDRESS_SANITIZER)
if(ADDRESS_SANITIZER)
if(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address -g")
@@ -541,7 +544,8 @@ if(ADDRESS_SANITIZER)
endif()
endif()
-option(THREAD_SANITIZER "Build with the thread sanitizer." False)
+option(THREAD_SANITIZER "(Developer-only) Build with the thread sanitizer." False)
+mark_as_advanced(THREAD_SANITIZER)
if(THREAD_SANITIZER)
if(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=thread -O1 -g")