File tree 3 files changed +16
-6
lines changed
3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,11 @@ add_custom_command(
50
50
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
51
51
)
52
52
53
- add_custom_target (c_library_check
54
- DEPENDS ${CMAKE_CURRENT_BINARY_DIR} /library-check.stamp
53
+ if (NOT "${CMAKE_CXX_COMPILER_ID} " STREQUAL "MSVC" )
54
+ add_custom_target (c_library_check
55
+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR} /library-check.stamp
55
56
)
57
+ endif ()
56
58
57
59
################################################################################
58
60
@@ -102,6 +104,12 @@ set(extra_dependencies
102
104
${CMAKE_CURRENT_BINARY_DIR} /library-check.stamp
103
105
)
104
106
107
+ if ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "MSVC" )
108
+ list (REMOVE_ITEM
109
+ extra_dependencies
110
+ ${CMAKE_CURRENT_BINARY_DIR} /library-check.stamp)
111
+ endif ()
112
+
105
113
file (GLOB_RECURSE sources "*.cpp" "*.h" )
106
114
107
115
list (REMOVE_ITEM sources
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ for f in "$@"; do
10
10
perl -p -i -e ' s/(_mm_.fence)/s$1/' __libcheck.c
11
11
perl -p -i -e ' s/(__sync_)/s$1/' __libcheck.c
12
12
perl -p -i -e ' s/(__noop)/s$1/' __libcheck.c
13
- $CC -std=gnu99 -E -include library/cprover.h -D__CPROVER_bool=_Bool -D__CPROVER_thread_local=__thread -DLIBRARY_CHECK -o __libcheck.i __libcheck.c
14
- $CC -S -Wall -Werror -pedantic -Wextra -std=gnu99 __libcheck.i -o __libcheck.s -Wno-unused-label
13
+ " $CC " -std=gnu99 -E -include library/cprover.h -D__CPROVER_bool=_Bool -D__CPROVER_thread_local=__thread -DLIBRARY_CHECK -o __libcheck.i __libcheck.c
14
+ " $CC " -S -Wall -Werror -pedantic -Wextra -std=gnu99 __libcheck.i -o __libcheck.s -Wno-unused-label
15
15
ec=" ${?} "
16
16
rm __libcheck.s __libcheck.i __libcheck.c
17
17
[ " ${ec} " -eq 0 ] || exit " ${ec} "
Original file line number Diff line number Diff line change @@ -22,9 +22,11 @@ add_custom_command(
22
22
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
23
23
)
24
24
25
- add_custom_target (cpp_library_check
26
- DEPENDS ${CMAKE_CURRENT_BINARY_DIR} /library-check.stamp
25
+ if (NOT "${CMAKE_CXX_COMPILER_ID} " STREQUAL "MSVC" )
26
+ add_custom_target (cpp_library_check
27
+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR} /library-check.stamp
27
28
)
29
+ endif ()
28
30
29
31
################################################################################
30
32
You can’t perform that action at this time.
0 commit comments