mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 04:03:39 +00:00
Fix Z3Config.cmake.in when generating a static library (#5555)
This commit is contained in:
parent
d36c3faf76
commit
91fb646f55
|
@ -10,6 +10,21 @@
|
||||||
# This file was built for the @CONFIG_FILE_TYPE@.
|
# 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
|
# Exported targets
|
||||||
include("${CMAKE_CURRENT_LIST_DIR}/Z3Targets.cmake")
|
include("${CMAKE_CURRENT_LIST_DIR}/Z3Targets.cmake")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue