CMake/Tests/RunCMake
Brad King 4dc4018553 Teach compiler ABI check to tolerate try_compile COPY_FILE failure
In CMakeDetermineCompilerABI we use try_compile with the COPY_FILE
option to get a copy of the compiled binary used to detect the ABI
information.  We already tolerate the case when compilation fails.
However, when compilation appears to succeed but does not produce the
expected executable the try_compile command immediately reports an error
because the COPY_FILE fails.

Tolerate COPY_FILE failure without stopping the overall configuration
process by using the try_compile COPY_FILE_ERROR option to capture the
error message.  Log the full error to CMakeError.log and simply report
failure to detect the ABI as if compilation had failed.

Teach the RunCMake.Configure test to cover this case and verify that the
messages show up as expected both in stdout and in CMakeError.log.
2013-07-17 15:40:44 -04:00
..
CMP0004 Add the $<TARGET_POLICY> expression 2013-01-17 17:20:17 +01:00
CMP0019 Add policy CMP0019 to skip include/link variable re-expansion 2012-12-07 09:51:19 -05:00
CMP0022 TLL: Don't populate old link interface if CMP0022 is NEW. 2013-07-08 22:39:58 +02:00
CTest CTest: Fail early without PROJECT_BINARY_DIR (#14005) 2013-03-12 18:20:44 -04:00
CompatibleInterface Report an error on IMPORTED targets with a faulty INTERFACE 2013-03-26 10:45:28 -04:00
CompilerChange Test Unix Makefiles generator support for changing compilers 2013-02-20 08:01:06 -05:00
Configure Teach compiler ABI check to tolerate try_compile COPY_FILE failure 2013-07-17 15:40:44 -04:00
ExternalData ExternalData: Do not re-stage staged object files 2013-05-24 15:45:38 -04:00
FPHSA FPHSA: Convert FOUND_VAR failure test to RunCMake 2013-02-22 08:57:11 -05:00
File_Generate file: Add GENERATE command to produce files at generate time 2013-05-24 09:02:45 -04:00
GeneratorExpression Make it an error for INSTALL_PREFIX to be evaluated. 2013-01-31 17:27:06 +01:00
GeneratorToolset VS12: Add Visual Studio 12 generator (#14251) 2013-06-28 18:13:14 -04:00
IncompatibleQt FindQt4: Set the INTERFACE_QT_MAJOR_VERSION for Qt4::QtCore 2013-03-18 09:31:33 -04:00
Languages Genex: Report error if a target file is needed to evaluate link libraries. 2013-06-24 16:22:15 +02:00
ObjectLibrary Test OBJECT library language propagation 2012-03-16 10:12:30 -04:00
ObsoleteQtMacros Mark qt4_use_modules and qt4_automoc as obsolete. 2013-07-14 10:05:04 +02:00
PositionIndependentCode Process the INTERFACE_PIC property from linked dependencies 2013-01-10 09:54:52 -05:00
SolutionGlobalSections Add tests for VS_SOLUTION_GLOBAL_SECTIONS 2012-11-16 08:16:10 -05:00
TargetPolicies Genex: Make CMP0021 and CMP0022 usable with TARGET_POLICY 2013-07-11 11:56:14 +02:00
TargetPropertyGeneratorExpressions Fix spelling and typos (affecting binary data / module messages) 2013-05-07 08:39:19 -04:00
VisibilityPreset Introduce target property <LANG>_VISIBILITY_PRESET 2013-06-02 12:00:51 +02:00
add_dependencies add_dependencies: Distinguish target v. file dependencies in error (#14050) 2013-03-29 15:00:33 -04:00
build_command build_command: Fail early without CMAKE_MAKE_PROGRAM (#14005) 2013-03-12 18:17:40 -04:00
find_package find_package: Test rejection of required+optional components 2012-03-19 10:53:36 -04:00
get_filename_component get_filename_component: Test ABSOLUTE of .. after root component 2013-06-04 09:09:22 -04:00
if if: Add test for IS_DIRECTORY 2013-05-28 11:35:32 -04:00
include include: Ignore empty string as file name (#13388) 2012-07-10 11:05:04 -04:00
include_directories Merge topic 'error-on-exported-missing-include-dir' 2013-05-21 15:13:26 -04:00
include_external_msproject Remove CMake-language block-end command arguments 2012-08-13 14:19:16 -04:00
list list: Handle errors on empty lists more gracefully (#13138) 2012-04-17 11:07:07 -04:00
try_compile try_compile: Add COPY_FILE_ERROR option to capture failure 2013-07-15 09:16:36 -04:00
variable_watch variable_watch: Print accesses as "CMake Debug Log" messages 2013-06-03 13:19:59 -04:00
CMakeLists.txt Merge topic 'obsolete-qt4-macros' 2013-07-16 13:59:22 -04:00
RunCMake.cmake Tests/RunCMake: Allow tests to control build tree behavior 2013-02-18 10:47:27 -05:00