Skip to content

Commit

Permalink
cmake: Restrict library suffixes for static builds. (cvc5#10126)
Browse files Browse the repository at this point in the history
Restricts library suffixes to .a for static builds, will build missing
static dependencies if necessary.

Fixes cvc5#10089.
  • Loading branch information
mpreiner authored Oct 31, 2023
1 parent 04795b7 commit af97da1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,9 @@ if(BUILD_SHARED_LIBS)
endif()
else()
if (WIN32)
set(CMAKE_FIND_LIBRARY_SUFFIXES .lib .a .dll)
set(CMAKE_FIND_LIBRARY_SUFFIXES .lib .a)
else()
set(CMAKE_FIND_LIBRARY_SUFFIXES .a .so .dylib)
set(CMAKE_FIND_LIBRARY_SUFFIXES .a)
endif()
endif()

Expand Down

0 comments on commit af97da1

Please sign in to comment.