We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d18f56c commit 8376144Copy full SHA for 8376144
CMakeLists.txt
@@ -21,7 +21,9 @@ if(${PACKAGE_VERSION} VERSION_LESS "7.0")
21
endif()
22
23
# If asserts are enabled opt-sched must be built with "IS_DEBUG".
24
-set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DIS_DEBUG")
+if(LLVM_ENABLE_ASSERTIONS)
25
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DIS_DEBUG")
26
+endif()
27
28
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
29
0 commit comments