blob: 8016842192f89ea3ce69d8764399cf803693a5dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
include_guard(GLOBAL)
if( LINK_WITH_MOLD )
find_program(MOLD_BIN mold)
if(MOLD_BIN)
message(STATUS "Mold linker found: ${MOLD_BIN}. Enabling mold as active linker.")
add_link_options("-fuse-ld=${MOLD_BIN}")
else()
message(STATUS "Mold linker not found. Using default linker.")
endif()
endif()
|