summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Make/VerboseBuild.cmake
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2019-01-24 18:31:32 (GMT)
committerBrad King <brad.king@kitware.com>2019-01-28 15:01:55 (GMT)
commit66801f4d40227c46904ad54848bd1da959604cbf (patch)
tree093864fcadfbf95b7adea9d2bd21e2047894fc7f /Tests/RunCMake/Make/VerboseBuild.cmake
parent439fe2e253410305ff7018416ff5ff26aa851d53 (diff)
downloadCMake-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.cmake8
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")