Skip to content

Commit

Permalink
CMAKE: Add Debug compile flag to all debug builds.
Browse files Browse the repository at this point in the history
(cherry picked from commit ccc94a2)
  • Loading branch information
jamievlin committed Feb 4, 2024
1 parent a01f322 commit 28027e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake-scripts/asy-macro.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ endif()
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
list(APPEND ASY_MACROS LINUX_SYSTEM)
endif()

if (CMAKE_BUILD_TYPE IN_LIST cmake_debug_build_types)
list(APPEND ASY_MACROS DEBUG)
endif()
1 change: 1 addition & 0 deletions cmake-scripts/common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ macro(TODO_NOTIMPL message)
endmacro()

set(cmake_release_build_types Release RelWithDebInfo MinSizeRel)
set(cmake_debug_build_types Debug)

0 comments on commit 28027e8

Please sign in to comment.