This PR makes the cmake integration of GLPK compatible with cmake 3.9.
Also, it adds a missing BUILD_BYPRODUCT for antlr.
${64bit}
--host=${TOOLCHAIN_PREFIX}
BUILD_BYPRODUCTS <INSTALL_DIR>/${CMAKE_INSTALL_LIBDIR}/libantlr3c.a
+ <INSTALL_DIR>/${CMAKE_INSTALL_LIBDIR}/libantlr3c.so
)
set(ANTLR3_JAR "${DEPS_BASE}/share/java/antlr-3.4-complete.jar")
endif()
endif()
if(USE_GLPK)
+ target_include_directories(cvc5-obj PRIVATE ${GLPK_INCLUDE_DIR})
+ target_link_libraries(cvc5-shared PRIVATE ${GLPK_LIBRARIES})
+ if(ENABLE_STATIC_LIBRARY)
+ target_link_libraries(cvc5-static PUBLIC ${GLPK_LIBRARIES})
+ endif()
target_link_libraries(cvc5-obj PUBLIC ${GLPK_LIBRARIES})
- target_include_directories(cvc5-obj PUBLIC ${GLPK_INCLUDE_DIR})
endif()
if(USE_POLY)
add_dependencies(cvc5-obj Polyxx_SHARED)