Skip to content

Commit

Permalink
Merge pull request #699 from MFraters/fix_cmake_debug_release_issues
Browse files Browse the repository at this point in the history
Fix cmake issues when using DebugRelease in ASPECT.
  • Loading branch information
gassmoeller authored Mar 13, 2024
2 parents c547b29 + af5119e commit 1f5fe62
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -489,11 +489,11 @@ endif()

# Make sure that the whole library is loaded, so the registration is done correctly.
if(NOT APPLE AND NOT MSVC)
SET(GWB_LIBRARY_WHOLE -Wl,--whole-archive WorldBuilder -Wl,--no-whole-archive)
SET(GWB_LIBRARY_WHOLE -Wl,--whole-archive ${WB_TARGET} -Wl,--no-whole-archive)
elseif(MSVC)
SET(GWB_LIBRARY_WHOLE WorldBuilder)
SET(GWB_LIBRARY_WHOLE ${WB_TARGET})
else()
SET(GWB_LIBRARY_WHOLE -Wl,-force_load WorldBuilder)
SET(GWB_LIBRARY_WHOLE -Wl,-force_load ${WB_TARGET})
endif()

if(${USE_MPI})
Expand Down
Loading

0 comments on commit 1f5fe62

Please sign in to comment.