Skip to content

Commit bcf5bc9

Browse files
committed
avoid debug flags spilling into dependent projects (#120)
1 parent 1992b3b commit bcf5bc9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ set(TARGETS_EXPORT_NAME ${PROJECT_NAME}-targets)
2222
include(GNUInstallDirs)
2323
set(INSTALL_CONFIGDIR ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
2424

25-
if(CMAKE_BUILD_TYPE STREQUAL Debug)
25+
if(CMAKE_BUILD_TYPE STREQUAL xDebug)
2626
include(FetchContent)
2727

2828
# Add project_options from https://github.com/aminya/project_options

src/beman/execution26/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
add_library(${TARGET_NAME} STATIC)
77
add_library(${TARGET_ALIAS} ALIAS ${TARGET_NAME})
88

9-
if(CMAKE_BUILD_TYPE STREQUAL Debug)
9+
if(CMAKE_BUILD_TYPE STREQUAL xDebug)
1010
target_link_libraries(${TARGET_NAME} PUBLIC $<BUILD_INTERFACE:${TARGET_NAME}_project_options>)
1111
target_link_libraries(${TARGET_NAME} PUBLIC $<BUILD_INTERFACE:${TARGET_NAME}_project_warnings>)
1212
endif()

0 commit comments

Comments
 (0)