Skip to content

Commit e8e2e11

Browse files
committed
Declare WITH_DEBUG_MESSAGES as a cmake option
When it is not declared as an option, the SetCompilerFlags.cmake scripts test only its definition and not its value. Hence there was no diffence between : ./gbuild.sh -d ON and ./gbuild.sh -d OFF . Both cases lead to activate the debug messages such as DEBUG_LP
1 parent 4741983 commit e8e2e11

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SetCompilerFlags.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ option(WITH_ASAN "Enable address sanitizer" OFF)
2222
message("WITH_ASAN=${WITH_ASAN}")
2323
option(WITH_ARCH "Enable architecture optimizations" OFF)
2424
message("WITH_ARCH=${WITH_ARCH}")
25+
option(WITH_DEBUG_MESSAGES "Enable debug messages" OFF)
26+
message("WITH_DEBUG_MESSAGES=${WITH_DEBUG_MESSAGES}")
2527

2628

2729
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")

0 commit comments

Comments
 (0)