summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/BuildDepends/Custom-Always.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-06-08 15:53:01 (GMT)
committerBrad King <brad.king@kitware.com>2017-06-08 17:31:33 (GMT)
commit69050f4d16ae649e074b5fd7cb3bae1811b403a8 (patch)
tree775341e68bf2dc481f3252b2526e8c28a7d0bb58 /Tests/RunCMake/BuildDepends/Custom-Always.cmake
parentc41a7c7d90e1fca52896dfeb99b7efd717aa6262 (diff)
downloadCMake-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/BuildDepends/Custom-Always.cmake')
-rw-r--r--Tests/RunCMake/BuildDepends/Custom-Always.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/BuildDepends/Custom-Always.cmake b/Tests/RunCMake/BuildDepends/Custom-Always.cmake
index d412708..c7e7fb0 100644
--- a/Tests/RunCMake/BuildDepends/Custom-Always.cmake
+++ b/Tests/RunCMake/BuildDepends/Custom-Always.cmake
@@ -16,7 +16,7 @@ add_custom_command(
add_custom_target(drive ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/after-always)
-file(GENERATE OUTPUT check-$<LOWER_CASE:$<CONFIG>>.cmake CONTENT "
+file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/check-$<LOWER_CASE:$<CONFIG>>.cmake CONTENT "
set(check_pairs
\"${CMAKE_CURRENT_BINARY_DIR}/always-updated|${CMAKE_CURRENT_BINARY_DIR}/before-always\"
\"${CMAKE_CURRENT_BINARY_DIR}/after-always|${CMAKE_CURRENT_BINARY_DIR}/always-updated\"