diff options
author | Shane Parris <shane.lee.parris@gmail.com> | 2018-02-14 16:35:44 (GMT) |
---|---|---|
committer | Shane Parris <shane.lee.parris@gmail.com> | 2018-04-02 03:16:12 (GMT) |
commit | 20612978c8d0880606632bf46f567218eae0b37b (patch) | |
tree | 3ca99ccc6e1fcd28c271eeeea64c20e6ce5765ee /Tests/RunCMake/file/GLOB-error-CONFIGURE_DEPENDS-modified.cmake | |
parent | 3f4b81f54096a90e2887ece75fff6cf4a8b93541 (diff) | |
download | CMake-20612978c8d0880606632bf46f567218eae0b37b.zip CMake-20612978c8d0880606632bf46f567218eae0b37b.tar.gz CMake-20612978c8d0880606632bf46f567218eae0b37b.tar.bz2 |
Add tests for `file(GLOB)` CONFIGURE_DEPENDS flag
Diffstat (limited to 'Tests/RunCMake/file/GLOB-error-CONFIGURE_DEPENDS-modified.cmake')
-rw-r--r-- | Tests/RunCMake/file/GLOB-error-CONFIGURE_DEPENDS-modified.cmake | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Tests/RunCMake/file/GLOB-error-CONFIGURE_DEPENDS-modified.cmake b/Tests/RunCMake/file/GLOB-error-CONFIGURE_DEPENDS-modified.cmake new file mode 100644 index 0000000..8d74dea --- /dev/null +++ b/Tests/RunCMake/file/GLOB-error-CONFIGURE_DEPENDS-modified.cmake @@ -0,0 +1,21 @@ +file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/test/first") +file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/test/second") +file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/test/third") + +file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test/first/one" "one") +file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test/second/two" "two") +file(GLOB_RECURSE CONTENT_LIST_1 + CONFIGURE_DEPENDS + "${CMAKE_CURRENT_BINARY_DIR}/test/*" + ) + +file(GLOB_RECURSE CONTENT_LIST_2 + CONFIGURE_DEPENDS + "${CMAKE_CURRENT_BINARY_DIR}/test/*" + ) + +file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/test/third/three" "three") +file(GLOB_RECURSE CONTENT_LIST_3 + CONFIGURE_DEPENDS + "${CMAKE_CURRENT_BINARY_DIR}/test/*" + ) |