Skip to content

Commit d8646ca

Browse files
tautschnigesteffin
andauthored
Add warning message in case static library is missing
Co-authored-by: Enrico Steffinlongo <[email protected]>
1 parent 3246c2b commit d8646ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libcprover-cpp/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ foreach(dep ${LIBRARY_DEPENDENCIES})
6666
else()
6767
find_library(dep_path ${dep})
6868
string(REGEX REPLACE "[.]so$" ".a" dep_static_path ${dep_path})
69+
if (NOT EXISTS "${dep_static_path}")
70+
message(FATAL_ERROR "libcprover-cpp cannot be linked as dependency ${dep_path} does not have a static correspondent file (${dep_static_path})")
71+
endif()
6972
list(APPEND DEPENDENCY_TARGETS ${dep_static_path})
7073
endif()
7174
endforeach(dep LIBRARY_DEPENDENCIES)

0 commit comments

Comments
 (0)