Skip to content

Commit 90df489

Browse files
committed
CMake builds: enable library checks for C++ model library
The rules were already in place, but there was no dependency to ensure invocation.
1 parent 11c949f commit 90df489

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/cpp/CMakeLists.txt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,24 @@ endif()
2424

2525
################################################################################
2626

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+
2738
file(GLOB_RECURSE sources "*.cpp" "*.h")
2839
add_library(cpp ${sources})
2940

3041
set_source_files_properties(
3142
${sources}
3243
PROPERTIES
33-
OBJECT_DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/cprover_library.inc"
44+
OBJECT_DEPENDS "${extra_dependencies}"
3445
)
3546

3647
generic_includes(cpp)

0 commit comments

Comments
 (0)