diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/cmake/HDF5_Process_Flex_Files.cmake | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/config/cmake/HDF5_Process_Flex_Files.cmake b/config/cmake/HDF5_Process_Flex_Files.cmake index 5947fb8..6ada04c 100644 --- a/config/cmake/HDF5_Process_Flex_Files.cmake +++ b/config/cmake/HDF5_Process_Flex_Files.cmake @@ -47,8 +47,9 @@ if (FILE_PARSE) ") file (APPEND ${FILE_PARSE} "${TEST_STREAM}") message (STATUS "processing pragma in ${FILE_PARSE}") - EXECUTE_PROCESS ( - COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/${FILE_PARSE}.timestamp + execute_process ( + COMMAND ${CMAKE_COMMAND} -E touch ${FILE_PARSE}.timestamp + DEPENDS "${FILE_PARSE}" ) endif (FILE_PARSE) @@ -82,7 +83,8 @@ if (FILE_ANALYZE) ") file (APPEND ${FILE_ANALYZE} "${TEST_STREAM}") message (STATUS "processing pragma in ${FILE_ANALYZE}") - EXECUTE_PROCESS ( - COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/${FILE_ANALYZE}.timestamp + execute_process ( + COMMAND ${CMAKE_COMMAND} -E touch ${FILE_ANALYZE}.timestamp + DEPENDS "${FILE_ANALYZE}" ) endif (FILE_ANALYZE) |