File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,18 @@ endif()
38
38
file (GLOB library_check_sources "library/*.c" )
39
39
list (REMOVE_ITEM library_check_sources ${platform_unavail} )
40
40
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
43
46
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
44
47
)
45
48
49
+ add_custom_target (library_check
50
+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR} /library-check.stamp
51
+ )
52
+
46
53
################################################################################
47
54
48
55
make_inc(arm_builtin_headers)
@@ -88,10 +95,9 @@ add_library(ansi-c
88
95
${CMAKE_CURRENT_BINARY_DIR} /gcc_builtin_headers_power.inc
89
96
${CMAKE_CURRENT_BINARY_DIR} /gcc_builtin_headers_tm.inc
90
97
${CMAKE_CURRENT_BINARY_DIR} /gcc_builtin_headers_ubsan.inc
98
+ ${CMAKE_CURRENT_BINARY_DIR} /library-check.stamp
91
99
)
92
100
93
101
generic_includes(ansi-c)
94
102
95
103
target_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