-
- Downloads
try_compile: Add option to control type of target
Create a `CMAKE_TRY_COMPILE_TARGET_TYPE` option to specify use of `add_library(... STATIC ...)` for the generated test project. This will be useful for cross-compiling toolchains that cannot link a binary without custom flags or scripts.
Showing
- Help/command/try_compile.rst 3 additions, 0 deletionsHelp/command/try_compile.rst
- Help/manual/cmake-variables.7.rst 1 addition, 0 deletionsHelp/manual/cmake-variables.7.rst
- Help/release/dev/try_compile-target-type.rst 8 additions, 0 deletionsHelp/release/dev/try_compile-target-type.rst
- Help/variable/CMAKE_TRY_COMPILE_TARGET_TYPE.rst 15 additions, 0 deletionsHelp/variable/CMAKE_TRY_COMPILE_TARGET_TYPE.rst
- Source/cmCoreTryCompile.cxx 63 additions, 10 deletionsSource/cmCoreTryCompile.cxx
- Source/cmCoreTryCompile.h 3 additions, 3 deletionsSource/cmCoreTryCompile.h
- Source/cmTryCompileCommand.cxx 1 addition, 1 deletionSource/cmTryCompileCommand.cxx
- Source/cmTryRunCommand.cxx 1 addition, 1 deletionSource/cmTryRunCommand.cxx
- Tests/RunCMake/try_compile/RunCMakeTest.cmake 4 additions, 0 deletionsTests/RunCMake/try_compile/RunCMakeTest.cmake
- Tests/RunCMake/try_compile/TargetTypeExe.cmake 14 additions, 0 deletionsTests/RunCMake/try_compile/TargetTypeExe.cmake
- Tests/RunCMake/try_compile/TargetTypeInvalid-result.txt 1 addition, 0 deletionsTests/RunCMake/try_compile/TargetTypeInvalid-result.txt
- Tests/RunCMake/try_compile/TargetTypeInvalid-stderr.txt 5 additions, 0 deletionsTests/RunCMake/try_compile/TargetTypeInvalid-stderr.txt
- Tests/RunCMake/try_compile/TargetTypeInvalid.cmake 2 additions, 0 deletionsTests/RunCMake/try_compile/TargetTypeInvalid.cmake
- Tests/RunCMake/try_compile/TargetTypeStatic.cmake 14 additions, 0 deletionsTests/RunCMake/try_compile/TargetTypeStatic.cmake
- Tests/RunCMake/try_compile/other.c 1 addition, 0 deletionsTests/RunCMake/try_compile/other.c
Loading
Please register or sign in to comment