diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2018-12-06 15:28:16 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2018-12-06 15:28:16 (GMT) |
commit | 31840e363f61c10770a3d22467396c05e7d3d422 (patch) | |
tree | fb61c47267056ecf0017ed02bd66f4069d74f85c /Tests/RunCMake/file | |
parent | 98a39be6cfb7b229ff78f7045c6d5bcd6b6c7509 (diff) | |
download | CMake-31840e363f61c10770a3d22467396c05e7d3d422.zip CMake-31840e363f61c10770a3d22467396c05e7d3d422.tar.gz CMake-31840e363f61c10770a3d22467396c05e7d3d422.tar.bz2 |
file: Fix formatting of error in SIZE sub-command
Diffstat (limited to 'Tests/RunCMake/file')
-rw-r--r-- | Tests/RunCMake/file/SIZE-error-does-not-exist-stderr.txt | 5 | ||||
-rw-r--r-- | Tests/RunCMake/file/SIZE-error-does-not-exist.cmake | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Tests/RunCMake/file/SIZE-error-does-not-exist-stderr.txt b/Tests/RunCMake/file/SIZE-error-does-not-exist-stderr.txt index b797a41..842cf89 100644 --- a/Tests/RunCMake/file/SIZE-error-does-not-exist-stderr.txt +++ b/Tests/RunCMake/file/SIZE-error-does-not-exist-stderr.txt @@ -1,5 +1,6 @@ ^CMake Error at SIZE-error-does-not-exist.cmake:[0-9]+ \(file\): - file SIZE requested of path that is not readable - /a/file/that/does-not-exist + file SIZE requested of path that is not readable: + + .*/Tests/RunCMake/file/SIZE-error-does-not-exist-build/does-not-exist Call Stack \(most recent call first\): CMakeLists.txt:[0-9]+ \(include\) diff --git a/Tests/RunCMake/file/SIZE-error-does-not-exist.cmake b/Tests/RunCMake/file/SIZE-error-does-not-exist.cmake index edcc222..ebac737 100644 --- a/Tests/RunCMake/file/SIZE-error-does-not-exist.cmake +++ b/Tests/RunCMake/file/SIZE-error-does-not-exist.cmake @@ -1,3 +1,3 @@ -set(file "/a/file/that/does-not-exist") +set(file "${CMAKE_CURRENT_BINARY_DIR}/does-not-exist") file(SIZE "${file}" CALCULATED_SIZE) |