cmake: Respect user-provided configuration-specific flags

This commit is contained in:
Hennadii Stepanov committed 2025-05-06 13:25:35 +01:00
1 parent de90b47ea0
commit edde96376a
2 files changed
+11 -8

No files matched your search

+4
View File
@@ -19,6 +19,10 @@ if(POLICY CMP0171)
cmake_policy(SET CMP0171 NEW)
endif()
# When adjusting CMake flag variables, we must not override those explicitly
# set by the user. These are a subset of the CACHE_VARIABLES property.
get_directory_property(precious_variables CACHE_VARIABLES)
#=============================
# Project / Package metadata
#=============================