|
|
@ -178,8 +178,6 @@ include(${STORM_3RDPARTY_SOURCE_DIR}/include_cudd.cmake) |
|
|
|
############################################################# |
|
|
|
include(${STORM_3RDPARTY_SOURCE_DIR}/include_cpptemplate.cmake) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
############################################################# |
|
|
|
## |
|
|
|
## carl |
|
|
@ -188,8 +186,10 @@ include(${STORM_3RDPARTY_SOURCE_DIR}/include_cpptemplate.cmake) |
|
|
|
|
|
|
|
set(STORM_HAVE_CARL OFF) |
|
|
|
if(USE_CARL) |
|
|
|
if (NOT STORM_FORCE_SHIPPED_CARL) |
|
|
|
find_package(carl QUIET) |
|
|
|
if(carl_FOUND) |
|
|
|
endif() |
|
|
|
if(carl_FOUND AND NOT STORM_FORCE_SHIPPED_CARL) |
|
|
|
set(STORM_SHIPPED_CARL OFF) |
|
|
|
set(STORM_HAVE_CARL ON) |
|
|
|
message(STATUS "Storm - Use system version of carl.") |
|
|
@ -204,9 +204,7 @@ if(USE_CARL) |
|
|
|
COMMAND ${CMAKE_COMMAND} ${STORM_3RDPARTY_SOURCE_DIR}/carl "-DSTORM_3RDPARTY_BINARY_DIR=${STORM_3RDPARTY_BINARY_DIR}" |
|
|
|
WORKING_DIRECTORY ${STORM_3RDPARTY_BINARY_DIR}/carl_download |
|
|
|
OUTPUT_VARIABLE carlconfig_out |
|
|
|
RESULT_VARIABLE carlconfig_result |
|
|
|
) |
|
|
|
|
|
|
|
RESULT_VARIABLE carlconfig_result) |
|
|
|
|
|
|
|
if(NOT carlconfig_result) |
|
|
|
message("${carlconfig_out}") |
|
|
@ -241,13 +239,16 @@ if(USE_CARL) |
|
|
|
set(carl_INCLUDE_DIR "${STORM_3RDPARTY_BINARY_DIR}/carl/include/") |
|
|
|
set(carl_LIBRARIES ${STORM_3RDPARTY_BINARY_DIR}/carl/lib/libcarl${DYNAMIC_EXT}) |
|
|
|
set(STORM_HAVE_CARL ON) |
|
|
|
|
|
|
|
# install the carl dynamic library if we build it |
|
|
|
get_filename_component(STORM_CARL_DYLIB_FULL_PATH ${STORM_3RDPARTY_BINARY_DIR}/carl/lib/libcarl${DYNAMIC_EXT} REALPATH) |
|
|
|
install(FILES ${STORM_CARL_DYLIB_FULL_PATH} DESTINATION lib) |
|
|
|
endif() |
|
|
|
if(STORM_USE_CLN_NUMBERS AND NOT STORM_HAVE_CLN) |
|
|
|
message(FATAL_ERROR "Cannot use CLN numbers if carl is build without") |
|
|
|
endif() |
|
|
|
|
|
|
|
list(APPEND STORM_DEP_IMP_TARGETS lib_carl) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|