GLOB-CONFIGURE_DEPENDS-RerunCMake.cmake 666 B

12345678910111213141516
  1. message(STATUS "Running CMake on GLOB-CONFIGURE_DEPENDS-RerunCMake")
  2. file(GLOB_RECURSE
  3. CONTENT_LIST
  4. CONFIGURE_DEPENDS
  5. LIST_DIRECTORIES false
  6. RELATIVE "${CMAKE_CURRENT_BINARY_DIR}"
  7. "${CMAKE_CURRENT_BINARY_DIR}/test/*"
  8. )
  9. string(SHA1 CONTENT_LIST_HASH "${CONTENT_LIST}")
  10. add_custom_target(CONTENT_ECHO ALL ${CMAKE_COMMAND} -E echo ${CONTENT_LIST_HASH})
  11. if(CMAKE_XCODE_BUILD_SYSTEM VERSION_GREATER_EQUAL 12)
  12. # Xcode's "new build system" does not reload the project file if it is updated
  13. # during the build. Print the output we expect the build to print just to make
  14. # the test pass.
  15. message(STATUS "CONTENT_LIST_HASH: ${CONTENT_LIST_HASH}")
  16. endif()