Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | |||||
endif() | endif() | ||||
include(AddCompilerFlags) | include(AddCompilerFlags) | ||||
if(USE_LINKER) | if(USE_LINKER) | ||||
set(LINKER_FLAG "-fuse-ld=${USE_LINKER}") | set(LINKER_FLAG "-fuse-ld=${USE_LINKER}") | ||||
check_linker_flag(IS_LINKER_SUPPORTED ${LINKER_FLAG}) | check_linker_flag(IS_LINKER_SUPPORTED ${LINKER_FLAG}) | ||||
if(NOT IS_LINKER_SUPPORTED) | if(NOT IS_LINKER_SUPPORTED) | ||||
message(FATAL_ERROR "The ${USE_LINKER} linker is not supported, make sure ${USE_LINKER} is properly isntalled or use -DUSE_LINKER= to use the system's linker") | message(FATAL_ERROR "The ${USE_LINKER} linker is not supported, make sure ${USE_LINKER} is properly installed or use -DUSE_LINKER= to use the system's linker") | ||||
endif() | endif() | ||||
add_linker_flags(${LINKER_FLAG}) | add_linker_flags(${LINKER_FLAG}) | ||||
endif() | endif() | ||||
# Prefer -g3, defaults to -g if unavailable | # Prefer -g3, defaults to -g if unavailable | ||||
foreach(LANGUAGE C CXX) | foreach(LANGUAGE C CXX) | ||||
set(COMPILER_DEBUG_LEVEL -g) | set(COMPILER_DEBUG_LEVEL -g) | ||||
check_compiler_flags(G3_IS_SUPPORTED ${LANGUAGE} -g3) | check_compiler_flags(G3_IS_SUPPORTED ${LANGUAGE} -g3) | ||||
▲ Show 20 Lines • Show All 625 Lines • Show Last 20 Lines |