mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 19:30:13 -06:00
Document these variables.
Change our convention for setting these variables from:
set(CMAKE_EXE_LINKER_FLAGS_INIT "...")
to
string(APPEND CMAKE_EXE_LINKER_FLAGS_INIT " ...")
so that any value previously set by a toolchain file will be used.
12 lines
319 B
CMake
12 lines
319 B
CMake
include(RunCMake)
|
|
|
|
function(run_cmake_toolchain t)
|
|
set(RunCMake_TEST_OPTIONS -DCMAKE_TOOLCHAIN_FILE=${RunCMake_SOURCE_DIR}/${t}-toolchain.cmake)
|
|
run_cmake(${t})
|
|
endfunction()
|
|
|
|
run_cmake_toolchain(CallEnableLanguage)
|
|
run_cmake_toolchain(CallProject)
|
|
run_cmake_toolchain(FlagsInit)
|
|
run_cmake_toolchain(LinkFlagsInit)
|