mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 19:35:50 +00:00
[CMake] Fix examples linking against libz3 when it is built as a
static library on Linux.
This commit is contained in:
parent
b20bf5169a
commit
ac85c68ccb
6 changed files with 12 additions and 27 deletions
|
@ -20,9 +20,3 @@ message(STATUS "Z3_DIR: ${Z3_DIR}")
|
|||
add_executable(z3_tptp5 tptp5.cpp tptp5.lex.cpp)
|
||||
target_include_directories(z3_tptp5 PRIVATE ${Z3_CXX_INCLUDE_DIRS})
|
||||
target_link_libraries(z3_tptp5 PRIVATE ${Z3_LIBRARIES})
|
||||
|
||||
# FIXME: The Z3 package does not export information on the link flags
|
||||
# This is needed for when libz3 is built as a static library
|
||||
#if (NOT BUILD_LIBZ3_SHARED)
|
||||
# z3_append_linker_flag_list_to_target(z3_tptp5 ${Z3_DEPENDENT_EXTRA_CXX_LINK_FLAGS})
|
||||
#endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue