diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2019-01-24 18:31:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-28 15:01:55 (GMT) |
commit | 66801f4d40227c46904ad54848bd1da959604cbf (patch) | |
tree | 093864fcadfbf95b7adea9d2bd21e2047894fc7f /Tests/RunCMake/Make/VerboseBuild.cmake | |
parent | 439fe2e253410305ff7018416ff5ff26aa851d53 (diff) | |
download | CMake-66801f4d40227c46904ad54848bd1da959604cbf.zip CMake-66801f4d40227c46904ad54848bd1da959604cbf.tar.gz CMake-66801f4d40227c46904ad54848bd1da959604cbf.tar.bz2 |
cmake: Add tests for verbose output to --build mode
Diffstat (limited to 'Tests/RunCMake/Make/VerboseBuild.cmake')
-rw-r--r-- | Tests/RunCMake/Make/VerboseBuild.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/Make/VerboseBuild.cmake b/Tests/RunCMake/Make/VerboseBuild.cmake new file mode 100644 index 0000000..70a971d --- /dev/null +++ b/Tests/RunCMake/Make/VerboseBuild.cmake @@ -0,0 +1,8 @@ +enable_language(C) + +# Make sure compile command is not hidden in a temp file. +string(REPLACE "${CMAKE_START_TEMP_FILE}" "" CMAKE_C_COMPILE_OBJECT "${CMAKE_C_COMPILE_OBJECT}") +string(REPLACE "${CMAKE_END_TEMP_FILE}" "" CMAKE_C_COMPILE_OBJECT "${CMAKE_C_COMPILE_OBJECT}") + +add_executable(hello hello.c) +target_compile_definitions(hello PRIVATE "DEFINE_FOR_VERBOSE_DETECTION") |