summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/file-CHMOD/override.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-07-18 21:48:21 (GMT)
committerBrad King <brad.king@kitware.com>2022-07-20 20:03:12 (GMT)
commit1cf2c94c69cffeb5dde30ca13e5f341f184b3b4c (patch)
treefac9f175cbb0baa96cbd8162375574a49d6265eb /Tests/RunCMake/file-CHMOD/override.cmake
parent11a0f72ac0aa0553d61f7a72e839ec7e88460268 (diff)
downloadCMake-1cf2c94c69cffeb5dde30ca13e5f341f184b3b4c.zip
CMake-1cf2c94c69cffeb5dde30ca13e5f341f184b3b4c.tar.gz
CMake-1cf2c94c69cffeb5dde30ca13e5f341f184b3b4c.tar.bz2
Tests: Simplify RunCMake.file-CHMOD cases
Run each case as a `cmake -P` script instead of a full project. The caller handles build directory removal and creation.
Diffstat (limited to 'Tests/RunCMake/file-CHMOD/override.cmake')
-rw-r--r--Tests/RunCMake/file-CHMOD/override.cmake7
1 files changed, 2 insertions, 5 deletions
diff --git a/Tests/RunCMake/file-CHMOD/override.cmake b/Tests/RunCMake/file-CHMOD/override.cmake
index d9226b8..67e5a23 100644
--- a/Tests/RunCMake/file-CHMOD/override.cmake
+++ b/Tests/RunCMake/file-CHMOD/override.cmake
@@ -1,6 +1,3 @@
-file(REMOVE_RECURSE ${CMAKE_CURRENT_BINARY_DIR}/chmod-tests)
-file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/chmod-tests)
-
-file(TOUCH ${CMAKE_CURRENT_BINARY_DIR}/chmod-tests/a)
-file(CHMOD ${CMAKE_CURRENT_BINARY_DIR}/chmod-tests/a PERMISSIONS OWNER_READ
+file(TOUCH ${CMAKE_CURRENT_BINARY_DIR}/a)
+file(CHMOD ${CMAKE_CURRENT_BINARY_DIR}/a PERMISSIONS OWNER_READ
FILE_PERMISSIONS OWNER_READ OWNER_WRITE)