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/BuildDepends/MakeInProjectOnly.cmake | |
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/BuildDepends/MakeInProjectOnly.cmake')
-rw-r--r-- | Tests/RunCMake/BuildDepends/MakeInProjectOnly.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/BuildDepends/MakeInProjectOnly.cmake b/Tests/RunCMake/BuildDepends/MakeInProjectOnly.cmake index add9aeb..af6ad86 100644 --- a/Tests/RunCMake/BuildDepends/MakeInProjectOnly.cmake +++ b/Tests/RunCMake/BuildDepends/MakeInProjectOnly.cmake @@ -3,7 +3,7 @@ get_filename_component(include_dir "${CMAKE_BINARY_DIR}" PATH) include_directories("${include_dir}") add_executable(MakeInProjectOnly MakeInProjectOnly.c) set(CMAKE_DEPENDS_IN_PROJECT_ONLY 1) -file(GENERATE OUTPUT check-$<LOWER_CASE:$<CONFIG>>.cmake CONTENT " +file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/check-$<LOWER_CASE:$<CONFIG>>.cmake CONTENT " if (check_step EQUAL 1) set(check_pairs \"$<TARGET_FILE:MakeInProjectOnly>|${include_dir}/MakeInProjectOnly.h\" |