CMake/Tests/RunCMake/try_compile
Brad King 88eb5824da try_compile: Pass linker flags into test project (#14066)
Copy CMAKE_EXE_LINKER_FLAGS into the test project generated by
try_compile, just like we already copy CMAKE_<LANG>_FLAGS.

Add CMake Policy CMP0056 to activate this behavior in a compatible way,
but do not warn by default when the policy is not set since it will
affect all try_compile calls.

Extend the RunCMake.try_compile test with a case covering this behavior
for each policy setting.
2014-12-03 15:30:22 -05:00
..
proj try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
BadLinkLibraries-result.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
BadLinkLibraries-stderr.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
BadLinkLibraries.cmake try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
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
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 try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NoArgs-stderr.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NoArgs.cmake try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NoCopyFile-result.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NoCopyFile-stderr.txt try_compile: Refactor argument processing 2013-05-31 10:01:50 -04:00
NoCopyFile.cmake try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NoCopyFile2-result.txt try_compile: Refactor argument processing 2013-05-31 10:01:50 -04:00
NoCopyFile2-stderr.txt try_compile: Refactor argument processing 2013-05-31 10:01:50 -04:00
NoCopyFile2.cmake try_compile: Refactor argument processing 2013-05-31 10:01:50 -04:00
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 try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NoOutputVariable-stderr.txt try_compile: Refactor argument processing 2013-05-31 10:01:50 -04:00
NoOutputVariable.cmake try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NoOutputVariable2-result.txt try_compile: Refactor argument processing 2013-05-31 10:01:50 -04:00
NoOutputVariable2-stderr.txt try_compile: Refactor argument processing 2013-05-31 10:01:50 -04:00
NoOutputVariable2.cmake try_compile: Refactor argument processing 2013-05-31 10:01:50 -04:00
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 try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NonSourceCompileDefinitions-stderr.txt try_compile: Refactor argument processing 2013-05-31 10:01:50 -04:00
NonSourceCompileDefinitions.cmake try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NonSourceCopyFile-result.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NonSourceCopyFile-stderr.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
NonSourceCopyFile.cmake try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
OneArg-result.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
OneArg-stderr.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
OneArg.cmake try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
RunCMakeTest.cmake try_compile: Pass linker flags into test project (#14066) 2014-12-03 15:30:22 -05:00
TwoArgs-result.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
TwoArgs-stderr.txt try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
TwoArgs.cmake try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00
src.c try_compile: Add test for bad call error cases 2013-05-31 10:00:42 -04:00