Skip to content

Commit

Permalink
Merge pull request #665 from Freed-Wu/debug
Browse files Browse the repository at this point in the history
Fix cmake -DDEBUG
  • Loading branch information
andreasfertig authored Sep 17, 2024
2 parents 461efd7 + b215e92 commit 751c3d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,9 @@ if (BUILD_INSIGHTS_OUTSIDE_LLVM)
# To many warnings/errors from Clang's internals
add_definitions(-Wextra)
add_definitions(-Wold-style-cast)
add_definitions(-Werror)
if(NOT DEBUG)
add_definitions(-Werror)
endif ()
endif ()

if(IS_GNU AND NOT INSIGHTS_TIDY)
Expand All @@ -308,6 +310,7 @@ if (BUILD_INSIGHTS_OUTSIDE_LLVM)
if(DEBUG)
add_definitions(-D INSIGHTS_DEBUG)
add_definitions(-O0)
add_definitions(-g)
endif()

if(WIN32)
Expand Down

0 comments on commit 751c3d9

Please sign in to comment.