rdong8 / cpp_project

Template for a modern C++ project using CMake.
0 stars 0 forks source link

Use Mold #6

Open rdong8 opened 3 months ago

rdong8 commented 3 months ago

The Mold linker is faster than other linkers and should be used by default.

https://github.com/rui314/mold

rdong8 commented 3 months ago

This is the right way to do it on CMake 3.29+:

https://cmake.org/cmake/help/latest/variable/CMAKE_LINKER_TYPE.html

rdong8 commented 3 months ago

I can get it to work without Conan but not with Conan. Relevant discussion here.

https://github.com/conan-io/conan/issues/14174