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 try_run: Add support for LINK_LIBRARIES option. 2015-01-26 10:05:26 -05:00
BadLinkLibraries.cmake
BadSources1-result.txt try_compile: Add signature to allow multiple SOURCES 2013-06-06 14:35:20 -04:00
BadSources1-stderr.txt try_compile: Add signature to allow multiple SOURCES 2013-06-06 14:35:20 -04:00
BadSources1.cmake try_compile: Add signature to allow multiple SOURCES 2013-06-06 14:35:20 -04:00
BadSources2-result.txt try_compile: Add signature to allow multiple SOURCES 2013-06-06 14:35:20 -04:00
BadSources2-stderr.txt try_compile: Add signature to allow multiple SOURCES 2013-06-06 14:35:20 -04:00
BadSources2.cmake try_compile: Add signature to allow multiple SOURCES 2013-06-06 14:35:20 -04:00
CMP0056-stderr.txt try_compile: Pass linker flags into test project (#14066) 2014-12-03 15:30:22 -05:00
CMP0056-stdout.txt try_compile: Pass linker flags into test project (#14066) 2014-12-03 15:30:22 -05:00
CMP0056.cmake try_compile: Pass linker flags into test project (#14066) 2014-12-03 15:30:22 -05:00
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 Cygwin: Avoid legacy warnings in RunCMake.* tests 2013-08-13 09:50:15 -04:00
CopyFileErrorNoCopyFile-result.txt try_compile: Add COPY_FILE_ERROR option to capture failure 2013-07-15 09:16:36 -04:00
CopyFileErrorNoCopyFile-stderr.txt try_compile: Add COPY_FILE_ERROR option to capture failure 2013-07-15 09:16:36 -04:00
CopyFileErrorNoCopyFile.cmake try_compile: Add COPY_FILE_ERROR option to capture failure 2013-07-15 09:16:36 -04:00
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 try_compile: Add COPY_FILE_ERROR option to capture failure 2013-07-15 09:16:36 -04:00
NoCopyFileError-stderr.txt try_compile: Add COPY_FILE_ERROR option to capture failure 2013-07-15 09:16:36 -04:00
NoCopyFileError.cmake try_compile: Add COPY_FILE_ERROR option to capture failure 2013-07-15 09:16:36 -04:00
NoOutputVariable-result.txt
NoOutputVariable-stderr.txt
NoOutputVariable.cmake
NoOutputVariable2-result.txt
NoOutputVariable2-stderr.txt
NoOutputVariable2.cmake
NoSources-result.txt try_compile: Add signature to allow multiple SOURCES 2013-06-06 14:35:20 -04:00
NoSources-stderr.txt try_compile: Add signature to allow multiple SOURCES 2013-06-06 14:35:20 -04:00
NoSources.cmake try_compile: Add signature to allow multiple SOURCES 2013-06-06 14:35:20 -04:00
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