Skip to content

Commit

Permalink
libcprover-cpp regression test: don't duplicate object files
Browse files Browse the repository at this point in the history
The object files are already part of libcprover-cpp, no need to add them
again. Doing so results in duplicate-definition errors on FreeBSD.
  • Loading branch information
tautschnig committed Nov 16, 2023
1 parent ab4ed78 commit 9ecf930
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions regression/libcprover-cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
file(GLOB_RECURSE api_sources "../src/libcprover-cpp/*.cpp" "../src/libcprover-cpp/*.h")

# This step builds a binary driving the API (to be used for testing)
add_executable(api-binary-driver call_bmc.cpp ${api_sources})
add_executable(api-binary-driver call_bmc.cpp)
cprover_default_properties(api-binary-driver)
target_include_directories(api-binary-driver
PUBLIC
Expand Down
2 changes: 1 addition & 1 deletion regression/libcprover-cpp/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
default: tests.log

SRC = call_bmc.cpp $(wildcard ../../src/libcprover-cpp/*.cpp)
SRC = call_bmc.cpp

OBJ += ../../src/libcprover-cpp/libcprover-cpp$(LIBEXT)

Expand Down

0 comments on commit 9ecf930

Please sign in to comment.