3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 11:25:51 +00:00

[CMake] Fix examples linking against libz3 when it is built as a

static library on Linux.
This commit is contained in:
Dan Liew 2017-03-04 19:01:23 +00:00
parent b20bf5169a
commit ac85c68ccb
6 changed files with 12 additions and 27 deletions

View file

@ -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()