Skip to content

Commit 0bbaabf

Browse files
committed
[cmake] force no prefix/postfix for debug libs
we explicitly prevent any submodules from setting CMAKE_DEBUG_POSTFIX by setting this *and forcing this* in the prolog, so that we don't end up with a situation where a module infects the build environment with this CMAKE variable. Sticky CMake Variables suck.
1 parent 2901f62 commit 0bbaabf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt.island_prolog.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ endif()
2424
set ( STATIC_LIBRARIES "" CACHE INTERNAL "static_libraries" )
2525
set ( DEPENDENCY_DEPTH 0 CACHE INTERNAL "current depth in dependency hierarchy" )
2626

27+
set(CMAKE_DEBUG_POSTFIX "" CACHE STRING "Suffix for debug builds" FORCE)
28+
2729
set ( PLUGIN_LIBS_DEPENDENCIES "" CACHE INTERNAL "plugins_libs_dependencies" )
2830
set ( PLUGIN_LINK_DIRS "")
2931

0 commit comments

Comments
 (0)