This website requires JavaScript.
Explore
Help
Sign In
kolan
/
CMake
Watch
1
Star
0
Fork
You've already forked CMake
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
01c545c596
CMake
/
Tests
/
RunCMake
/
Configure
/
RunCMakeTest.cmake
5 lines
67 B
CMake
Raw
Normal View
History
Unescape
Escape
cmake: On configure error suggest looking at CMake*.log files When CMake reports failure to configure a project, especially when the toolchain does not initialize properly, the true reason may be clear from reading the CMakeFiles/CMake(Output|Error).log files. Advise users to look at these files if they exist when configuration fails. Add RunCMake.Configure test to check that the log files are mentioned when configuration fails.
2013-07-09 22:35:49 +04:00
include
(
RunCMake
)
run_cmake
(
ErrorLogs
)
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 22:56:40 +04:00
run_cmake
(
FailCopyFileABI
)