Skip to content

Commit f7b3134

Browse files
Merge pull request #1135 from Geode-solutions/fix/linker
fix(CMake): allow to choose the linker associated to the toolchain
2 parents 4ab2679 + 550acab commit f7b3134

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/GlobalOptions.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ include(InstallRequiredSystemLibraries)
1717
set(CMAKE_CXX_STANDARD_REQUIRED ON)
1818
set(CMAKE_CXX_EXTENSIONS OFF)
1919
set(CMAKE_COLOR_DIAGNOSTICS ON)
20+
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.29)
21+
set(CMAKE_LINKER_TYPE "SYSTEM")
22+
endif()
2023

2124
find_program(CLANG_TIDY "clang-tidy")
2225
if(CLANG_TIDY)

0 commit comments

Comments
 (0)