Browse Source

installing correct libcarl if built from shipped version

tempestpy_adaptions
dehnert 8 years ago
parent
commit
fa49ebb922
  1. 6
      CMakeLists.txt
  2. 11
      resources/3rdparty/CMakeLists.txt
  3. 2
      src/storm/utility/storm-version.h

6
CMakeLists.txt

@ -355,15 +355,15 @@ endif(DOXYGEN_FOUND)
# If storm is built from an archive, we need to skip the version detection based on git. # If storm is built from an archive, we need to skip the version detection based on git.
if (STORM_SOURCE STREQUAL "archive") if (STORM_SOURCE STREQUAL "archive")
if (NOT DEFINED STORM_VERSION_MAJOR OR NOT DEFINED STORM_VERSION_MINOR OR NOT DEFINED STORM_VERSION_PATCH) if (NOT DEFINED STORM_VERSION_MAJOR OR NOT DEFINED STORM_VERSION_MINOR OR NOT DEFINED STORM_VERSION_PATCH)
message(FATAL_ERROR "storm - Building from archive requires setting a version via cmake.")
message(FATAL_ERROR "storm - building from archive requires setting a version via cmake.")
endif() endif()
message(STATUS "storm - Version is ${STORM_VERSION_MAJOR}.${STORM_VERSION_MINOR}.${STORM_VERSION_PATCH} (building from archive).")
message(STATUS "storm - version is ${STORM_VERSION_MAJOR}.${STORM_VERSION_MINOR}.${STORM_VERSION_PATCH} (building from archive).")
set(STORM_VERSION_COMMITS_AHEAD boost::none) set(STORM_VERSION_COMMITS_AHEAD boost::none)
set(STORM_VERSION_GIT_HASH boost::none) set(STORM_VERSION_GIT_HASH boost::none)
set(STORM_VERSION_DIRTY boost::none) set(STORM_VERSION_DIRTY boost::none)
else() else()
if (DEFINED STORM_VERSION_MAJOR OR DEFINED STORM_VERSION_MINOR OR DEFINED STORM_VERSION_PATCH) if (DEFINED STORM_VERSION_MAJOR OR DEFINED STORM_VERSION_MINOR OR DEFINED STORM_VERSION_PATCH)
message(FATAL_ERROR "storm - Building from git does not support setting a version via cmake.")
message(FATAL_ERROR "storm - building from git does not support setting a version via cmake.")
endif() endif()
# Make a version file containing the current version from git. # Make a version file containing the current version from git.

11
resources/3rdparty/CMakeLists.txt

@ -229,7 +229,7 @@ if(USE_CARL)
BUILD_COMMAND make lib_carl BUILD_COMMAND make lib_carl
INSTALL_COMMAND make install INSTALL_COMMAND make install
LOG_BUILD ON LOG_BUILD ON
LOG_INSTALL ON
LOG_INSTALL ON
BUILD_BYPRODUCTS ${STORM_3RDPARTY_BINARY_DIR}/carl/lib/libcarl${DYNAMIC_EXT} BUILD_BYPRODUCTS ${STORM_3RDPARTY_BINARY_DIR}/carl/lib/libcarl${DYNAMIC_EXT}
) )
include(${STORM_3RDPARTY_BINARY_DIR}/carl/carlConfig.cmake) include(${STORM_3RDPARTY_BINARY_DIR}/carl/carlConfig.cmake)
@ -241,8 +241,7 @@ if(USE_CARL)
set(STORM_HAVE_CARL ON) set(STORM_HAVE_CARL ON)
# install the carl dynamic library if we build it # 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)
install(FILES ${STORM_3RDPARTY_BINARY_DIR}/carl/lib/libcarl.1.0.0${DYNAMIC_EXT} DESTINATION lib)
endif() endif()
if(STORM_USE_CLN_NUMBERS AND NOT STORM_HAVE_CLN) if(STORM_USE_CLN_NUMBERS AND NOT STORM_HAVE_CLN)
message(FATAL_ERROR "Cannot use CLN numbers if carl is build without") message(FATAL_ERROR "Cannot use CLN numbers if carl is build without")
@ -267,7 +266,7 @@ if(USE_SMTRAT)
include_directories("${smtrat_INCLUDE_DIR}") include_directories("${smtrat_INCLUDE_DIR}")
list(APPEND STORM_LINK_LIBRARIES ${smtrat_LIBRARIES}) list(APPEND STORM_LINK_LIBRARIES ${smtrat_LIBRARIES})
else() else()
message(FATAL_ERROR "StoRM - SMT-RAT was requested but not found")
message(FATAL_ERROR "storm - SMT-RAT was requested but not found")
endif() endif()
endif() endif()
@ -287,7 +286,7 @@ if(USE_HYPRO)
include_directories("${hypro_INCLUDE_DIR}") include_directories("${hypro_INCLUDE_DIR}")
list(APPEND STORM_LINK_LIBRARIES ${hypro_LIBRARIES}) list(APPEND STORM_LINK_LIBRARIES ${hypro_LIBRARIES})
else() else()
message(FATAL_ERROR "StoRM - HyPro was requested but not found")
message(FATAL_ERROR "storm - HyPro was requested but not found")
endif() endif()
endif() endif()
@ -493,7 +492,7 @@ if(ENABLE_CUDA)
if(NOT STORM_CUDA_COMPILE_RESULT_TYPEALIGNMENT) if(NOT STORM_CUDA_COMPILE_RESULT_TYPEALIGNMENT)
message(FATAL_ERROR "storm (CudaPlugin) - Could not test type alignment, there was an Error while compiling the file ${PROJECT_SOURCE_DIR}/cuda/CMakeAlignmentCheck.cpp: ${OUTPUT_TEST_VAR}") message(FATAL_ERROR "storm (CudaPlugin) - Could not test type alignment, there was an Error while compiling the file ${PROJECT_SOURCE_DIR}/cuda/CMakeAlignmentCheck.cpp: ${OUTPUT_TEST_VAR}")
elseif(STORM_CUDA_RUN_RESULT_TYPEALIGNMENT EQUAL 0) elseif(STORM_CUDA_RUN_RESULT_TYPEALIGNMENT EQUAL 0)
message(STATUS "StoRM (CudaPlugin) - Result of Type Alignment Check: OK.")
message(STATUS "storm (CudaPlugin) - Result of Type Alignment Check: OK.")
else() else()
message(FATAL_ERROR "storm (CudaPlugin) - Result of Type Alignment Check: FAILED (Code ${STORM_CUDA_RUN_RESULT_TYPEALIGNMENT})") message(FATAL_ERROR "storm (CudaPlugin) - Result of Type Alignment Check: FAILED (Code ${STORM_CUDA_RUN_RESULT_TYPEALIGNMENT})")
endif() endif()

2
src/storm/utility/storm-version.h

@ -55,7 +55,7 @@ namespace storm {
sstream << " build from revision " << gitRevisionHash.get(); sstream << " build from revision " << gitRevisionHash.get();
} }
if (dirty && dirty.get() == 1) { if (dirty && dirty.get() == 1) {
sstream << " (DIRTY)";
sstream << " (dirty)";
} }
sstream << "." << std::endl; sstream << "." << std::endl;
return sstream.str(); return sstream.str();

Loading…
Cancel
Save