Browse Source

CMake now ensures that carl is not only configured, but also built and thereby prevents compilation-time errors.

tempestpy_adaptions
Sebastian Junges 8 years ago
parent
commit
ed2a1dc1de
  1. 8
      resources/3rdparty/CMakeLists.txt

8
resources/3rdparty/CMakeLists.txt

@ -202,6 +202,14 @@ if(USE_CARL)
find_package(carl QUIET) find_package(carl QUIET)
endif() endif()
if(carl_FOUND AND NOT STORM_FORCE_SHIPPED_CARL) if(carl_FOUND AND NOT STORM_FORCE_SHIPPED_CARL)
get_target_property(carlLOCATION lib_carl LOCATION)
if(${carlLOCATION} STREQUAL "carlLOCATION-NOTFOUND")
message(SEND_ERROR "Library location for carl is not found, did you build carl?")
elseif(EXISTS ${carlLOCATION})
#empty on purpose
else()
message(SEND_ERROR "File ${carlLOCATION} does not exist, did you build carl?")
endif()
set(STORM_SHIPPED_CARL OFF) set(STORM_SHIPPED_CARL OFF)
set(STORM_HAVE_CARL ON) set(STORM_HAVE_CARL ON)
message(STATUS "Storm - Use system version of carl.") message(STATUS "Storm - Use system version of carl.")

Loading…
Cancel
Save