Skip to content

Commit bf9f197

Browse files
committed
Add warning message regarding CDO
These warnings might be treated as noise, and can be removed once devs and downstream are adapted to it.
1 parent c6a9c5f commit bf9f197

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ if(EXISTS "${LOC_PATH}")
1010
endif()
1111

1212
include(CMakeDependentOption)
13+
message(WARNING
14+
"The build system now uses cmake_dependent_option extensively.\n"
15+
"Many advanced options are now conditionally enabled based on their dependencies; "
16+
"when dependency conditions are not met, the corresponding options will be"
17+
"automatically turned OFF and hidden in cmake-gui/ccmake.\n"
18+
"Please review your configuration if you previously set these options manually."
19+
)
20+
1321
if(POLICY CMP0135) # https://cmake.org/cmake/help/git-stage/policy/CMP0135.html
1422
cmake_policy(SET CMP0135 NEW)
1523
# Otherwise this policy generates a warning on CMake 3.24
@@ -82,7 +90,7 @@ function(abacus_rename_option old_name new_name)
8290
if(NOT _old_defined)
8391
return()
8492
endif()
85-
message(WARNING "${old_name} has been renamed to ${new_name}.")
93+
message(DEPRECATION "${old_name} has been renamed to ${new_name}.")
8694
get_property(_type CACHE "${new_name}" PROPERTY TYPE)
8795
get_property(_help CACHE "${new_name}" PROPERTY HELPSTRING)
8896
set("${new_name}" "${${old_name}}" CACHE "${_type}" "${_help}" FORCE)
@@ -95,7 +103,7 @@ abacus_rename_option(INFO MATH_INFO)
95103

96104
if(DEFINED CACHE{ENABLE_LIBCOMM})
97105
message(
98-
WARNING
106+
DEPRECATION
99107
"Option ENABLE_LIBCOMM is deprecated and will be ignored in a future release. "
100108
"LibComm is now treated as an implementation dependency of LibRI; "
101109
"please use -DENABLE_LIBRI=ON instead."

0 commit comments

Comments
 (0)