File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,18 @@ endif()
3838file (GLOB library_check_sources "library/*.c" )
3939list (REMOVE_ITEM library_check_sources ${platform_unavail} )
4040
41- add_custom_target (library_check
42- ${CMAKE_CURRENT_SOURCE_DIR} /library_check.sh ${library_check_sources}
41+ add_custom_command (
42+ DEPENDS ${library_check_sources}
43+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR} /library_check.sh ${library_check_sources}
44+ COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR} /library-check.stamp
45+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR} /library-check.stamp
4346 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
4447)
4548
49+ add_custom_target (library_check
50+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR} /library-check.stamp
51+ )
52+
4653################################################################################
4754
4855make_inc(arm_builtin_headers)
@@ -88,10 +95,9 @@ add_library(ansi-c
8895 ${CMAKE_CURRENT_BINARY_DIR} /gcc_builtin_headers_power.inc
8996 ${CMAKE_CURRENT_BINARY_DIR} /gcc_builtin_headers_tm.inc
9097 ${CMAKE_CURRENT_BINARY_DIR} /gcc_builtin_headers_ubsan.inc
98+ ${CMAKE_CURRENT_BINARY_DIR} /library-check.stamp
9199)
92100
93101generic_includes(ansi-c)
94102
95103target_link_libraries (ansi-c util linking goto-programs assembler)
96-
97- add_dependencies (ansi-c library_check)
You can’t perform that action at this time.
0 commit comments