CMake/Tests/RunCMake/try_compile
Brad King d582c23a47 try_compile: Add policy CMP0066 to honor CMAKE_<LANG>_FLAGS_<CONFIG>
In the `try_compile` source file signature we propagate the caller's
value of `CMAKE_<LANG>_FLAGS` into the test project.  Extend this to
propagate `CMAKE_<LANG>_FLAGS_<CONFIG>` too instead of always using the
default value in the test project.  This will be useful, for example, to
allow the MSVC runtime library to be changed (e.g. `-MDd` => `-MTd`).
However, some projects may currently depend on this not being done,
so we need to activate the behavior using a policy.

This change was originally made by commit v3.6.0-rc1~160^2 (try_compile:
Honor CMAKE_<LANG>_FLAGS_<CONFIG> changes, 2016-04-11) but without the
policy and so had to be reverted during the 3.6 release candidate cycle.

Fixes #16174.
2016-06-29 09:11:02 -04:00
..
proj
BadLinkLibraries-result.txt
BadLinkLibraries-stderr.txt
BadLinkLibraries.cmake
BadSources1-result.txt
BadSources1-stderr.txt
BadSources1.cmake
BadSources2-result.txt
BadSources2-stderr.txt
BadSources2.cmake
CMP0056-stderr.txt
CMP0056-stdout.txt
CMP0056.cmake
CMP0066-stderr.txt try_compile: Add policy CMP0066 to honor CMAKE_<LANG>_FLAGS_<CONFIG> 2016-06-29 09:11:02 -04:00
CMP0066-stdout.txt try_compile: Add policy CMP0066 to honor CMAKE_<LANG>_FLAGS_<CONFIG> 2016-06-29 09:11:02 -04:00
CMP0066.cmake try_compile: Add policy CMP0066 to honor CMAKE_<LANG>_FLAGS_<CONFIG> 2016-06-29 09:11:02 -04:00
CMakeLists.txt
CopyFileErrorNoCopyFile-result.txt
CopyFileErrorNoCopyFile-stderr.txt
CopyFileErrorNoCopyFile.cmake
NoArgs-result.txt
NoArgs-stderr.txt
NoArgs.cmake
NoCopyFile-result.txt
NoCopyFile-stderr.txt
NoCopyFile.cmake
NoCopyFile2-result.txt
NoCopyFile2-stderr.txt
NoCopyFile2.cmake
NoCopyFileError-result.txt
NoCopyFileError-stderr.txt
NoCopyFileError.cmake
NoOutputVariable-result.txt
NoOutputVariable-stderr.txt
NoOutputVariable.cmake
NoOutputVariable2-result.txt
NoOutputVariable2-stderr.txt
NoOutputVariable2.cmake
NoSources-result.txt
NoSources-stderr.txt
NoSources.cmake
NonSourceCompileDefinitions-result.txt
NonSourceCompileDefinitions-stderr.txt
NonSourceCompileDefinitions.cmake
NonSourceCopyFile-result.txt
NonSourceCopyFile-stderr.txt
NonSourceCopyFile.cmake
OneArg-result.txt
OneArg-stderr.txt
OneArg.cmake
PlatformVariables.cmake try_compile: Optionally forward custom platform variables to test project 2016-05-25 09:36:19 -04:00
RerunCMake-nowork-ninja-no-console-stdout.txt try_compile: Test that CMake re-runs on input change 2015-01-27 11:18:36 -05:00
RerunCMake-rerun-ninja-no-console-stdout.txt try_compile: Test that CMake re-runs on input change 2015-01-27 11:18:36 -05:00
RerunCMake-rerun-stderr.txt try_compile: Test that CMake re-runs on input change 2015-01-27 11:18:36 -05:00
RerunCMake-rerun-stdout.txt try_compile: Test that CMake re-runs on input change 2015-01-27 11:18:36 -05:00
RerunCMake-stderr.txt try_compile: Test that CMake re-runs on input change 2015-01-27 11:18:36 -05:00
RerunCMake-stdout.txt try_compile: Test that CMake re-runs on input change 2015-01-27 11:18:36 -05:00
RerunCMake.cmake try_compile: Test that CMake re-runs on input change 2015-01-27 11:18:36 -05:00
RunCMakeTest.cmake try_compile: Add policy CMP0066 to honor CMAKE_<LANG>_FLAGS_<CONFIG> 2016-06-29 09:11:02 -04:00
TargetTypeExe.cmake try_compile: Add option to control type of target 2016-02-19 14:07:38 -05:00
TargetTypeInvalid-result.txt try_compile: Add option to control type of target 2016-02-19 14:07:38 -05:00
TargetTypeInvalid-stderr.txt try_compile: Add option to control type of target 2016-02-19 14:07:38 -05:00
TargetTypeInvalid.cmake try_compile: Add option to control type of target 2016-02-19 14:07:38 -05:00
TargetTypeStatic.cmake try_compile: Add option to control type of target 2016-02-19 14:07:38 -05:00
TwoArgs-result.txt
TwoArgs-stderr.txt
TwoArgs.cmake
other.c Revise C++ coding style using clang-format 2016-05-16 16:05:19 -04:00
src.c try_compile: Add policy CMP0066 to honor CMAKE_<LANG>_FLAGS_<CONFIG> 2016-06-29 09:11:02 -04:00