Mold/Ninja through conan
This commit is contained in:
9
ConanProfiles/Toolchains/mold.cmake
Normal file
9
ConanProfiles/Toolchains/mold.cmake
Normal file
@@ -0,0 +1,9 @@
|
||||
include_guard()
|
||||
|
||||
find_program(MOLD_PROGRAM mold)
|
||||
if (MOLD_PROGRAM)
|
||||
set(CMAKE_LINKER_TYPE MOLD)
|
||||
message(STATUS "mold linker found: ${MOLD_PROGRAM}")
|
||||
else ()
|
||||
message(WARNING "mold linker not found")
|
||||
endif ()
|
||||
Reference in New Issue
Block a user