We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11c949f commit 90df489Copy full SHA for 90df489
src/cpp/CMakeLists.txt
@@ -24,13 +24,24 @@ endif()
24
25
################################################################################
26
27
+set(extra_dependencies
28
+ ${CMAKE_CURRENT_BINARY_DIR}/cprover_library.inc
29
+ ${CMAKE_CURRENT_BINARY_DIR}/library-check.stamp
30
+)
31
+
32
+if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
33
+ list(REMOVE_ITEM
34
+ extra_dependencies
35
+ ${CMAKE_CURRENT_BINARY_DIR}/library-check.stamp)
36
+endif()
37
38
file(GLOB_RECURSE sources "*.cpp" "*.h")
39
add_library(cpp ${sources})
40
41
set_source_files_properties(
42
${sources}
43
PROPERTIES
- OBJECT_DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/cprover_library.inc"
44
+ OBJECT_DEPENDS "${extra_dependencies}"
45
)
46
47
generic_includes(cpp)
0 commit comments