diff options
author | Brad King <brad.king@kitware.com> | 2017-06-08 15:53:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-06-08 17:31:33 (GMT) |
commit | 69050f4d16ae649e074b5fd7cb3bae1811b403a8 (patch) | |
tree | 775341e68bf2dc481f3252b2526e8c28a7d0bb58 /Tests/RunCMake/File_Generate | |
parent | c41a7c7d90e1fca52896dfeb99b7efd717aa6262 (diff) | |
download | CMake-69050f4d16ae649e074b5fd7cb3bae1811b403a8.zip CMake-69050f4d16ae649e074b5fd7cb3bae1811b403a8.tar.gz CMake-69050f4d16ae649e074b5fd7cb3bae1811b403a8.tar.bz2 |
Tests: Use full output paths in file(GENERATE) calls
We don't define behavior for relative paths to the OUTPUT argument.
Fix our tests to use full paths.
Diffstat (limited to 'Tests/RunCMake/File_Generate')
-rw-r--r-- | Tests/RunCMake/File_Generate/COMPILE_LANGUAGE-genex.cmake | 2 | ||||
-rw-r--r-- | Tests/RunCMake/File_Generate/ReRunCMake.cmake | 2 | ||||
-rw-r--r-- | Tests/RunCMake/File_Generate/WriteIfDifferent.cmake | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Tests/RunCMake/File_Generate/COMPILE_LANGUAGE-genex.cmake b/Tests/RunCMake/File_Generate/COMPILE_LANGUAGE-genex.cmake index e2b081d..59ccf19 100644 --- a/Tests/RunCMake/File_Generate/COMPILE_LANGUAGE-genex.cmake +++ b/Tests/RunCMake/File_Generate/COMPILE_LANGUAGE-genex.cmake @@ -7,6 +7,6 @@ target_compile_options(empty ) file(GENERATE - OUTPUT opts-$<COMPILE_LANGUAGE>.txt + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/opts-$<COMPILE_LANGUAGE>.txt CONTENT "$<TARGET_PROPERTY:empty,COMPILE_OPTIONS>\n" ) diff --git a/Tests/RunCMake/File_Generate/ReRunCMake.cmake b/Tests/RunCMake/File_Generate/ReRunCMake.cmake index 109d60e..541d86d 100644 --- a/Tests/RunCMake/File_Generate/ReRunCMake.cmake +++ b/Tests/RunCMake/File_Generate/ReRunCMake.cmake @@ -1,5 +1,5 @@ file(GENERATE - OUTPUT output_file.txt + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/output_file.txt" INPUT "${CMAKE_CURRENT_BINARY_DIR}/input_file.txt" ) diff --git a/Tests/RunCMake/File_Generate/WriteIfDifferent.cmake b/Tests/RunCMake/File_Generate/WriteIfDifferent.cmake index d1d832a..bb36a4c 100644 --- a/Tests/RunCMake/File_Generate/WriteIfDifferent.cmake +++ b/Tests/RunCMake/File_Generate/WriteIfDifferent.cmake @@ -1,5 +1,5 @@ file(GENERATE - OUTPUT output_file.txt + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/output_file.txt CONTENT "123" ) |