Skip to content

Commit

Permalink
Fix Z3Config.cmake.in when generating a static library (#5555)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexodia authored Sep 17, 2021
1 parent d36c3fa commit 91fb646
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions cmake/Z3Config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@
# This file was built for the @CONFIG_FILE_TYPE@.
################################################################################


# Handle dependencies (necessary when compiling the static library)
if(NOT @Z3_BUILD_LIBZ3_SHARED@)
include(CMakeFindDependencyMacro)

# Threads::Threads
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
find_dependency(Threads)

# GMP::GMP
if(@Z3_USE_LIB_GMP@)
find_dependency(GMP)
endif()
endif()

# Exported targets
include("${CMAKE_CURRENT_LIST_DIR}/Z3Targets.cmake")

Expand Down

0 comments on commit 91fb646

Please sign in to comment.