Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
Co-authored-by: Jean-Christophe Fillion-Robin <[email protected]>
  • Loading branch information
RafaelPalomar and jcfr committed Nov 3, 2023
1 parent e738c36 commit 7a99ef3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,13 @@ mark_as_superbuild(ADDITIONAL_CXX_FLAGS)
# enabling the gold linker in 3D Slicer, as outlined in PR:
# https://github.com/Slicer/Slicer/pull/7294.
#
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}" CACHE STRING "Flags used by the linker" FORCE)
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS}" CACHE STRING "Flags used by the linker (module)" FORCE)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}" CACHE STRING "Flags used by the linker (shared)" FORCE)

mark_as_superbuild(VARS
CMAKE_EXE_LINKER_FLAGS:STRING
CMAKE_MODULE_LINKER_FLAGS:PATH
CMAKE_MODULE_LINKER_FLAGS:STRING
CMAKE_SHARED_LINKER_FLAGS:STRING
ALL_PROJECTS
)
Expand Down

0 comments on commit 7a99ef3

Please sign in to comment.