You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The proper way to set the linker in CMake 3.29+ is with this new variable. The example from the bottom of this page suggests something like this (target specific):
cmake -S . -B build -G "Ninja Multi-Config" -DCMAKE_CXX_COMPILER=clang++
-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is Clang 18.1.8
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- INTERFACE_LINKER_TYPE for target 'config' is:
-- INTERFACE_LINKER_TYPE for target 'lib' is:
-- INTERFACE_LINKER_TYPE for target 'app' is:
-- Configuring done (0.7s)
CMake Error in CMakeLists.txt:
LINKER_TYPE 'SOLD' is unknown or not supported by this toolchain.
There is already some error checking for this that could also be adapted to work with the new setting.
The proper way to set the linker in CMake 3.29+ is with this new variable. The example from the bottom of this page suggests something like this (target specific):
or globally:
The text was updated successfully, but these errors were encountered: