summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/file/GLOB-error-CONFIGURE_DEPENDS-modified.cmake
blob: 8d74deac664cd76dd930ff9cc787a3fff8a15d07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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/*"
  )