From 382c167c10cd301baf1192fb9471d33586698883 Mon Sep 17 00:00:00 2001 From: hbruintjes Date: Thu, 21 Apr 2016 16:43:41 +0200 Subject: [PATCH] Print package version information Former-commit-id: 08484d5cc78f4384ec60ce6d67f836f160fcaeba --- CMakeLists.txt | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 511797a05..c9b078811 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -278,13 +278,13 @@ else() message (STATUS "StoRM - Using shipped version of GLPK") set(GLPK_LIBRARIES ${CMAKE_BINARY_DIR}/resources/3rdparty/glpk-4.57/lib/libglpk${DYNAMIC_EXT}) set(GLPK_INCLUDE_DIR ${CMAKE_BINARY_DIR}/resources/3rdparty/glpk-4.57/include) - + set(GLPK_VERSION_STRING 4.57) add_dependencies(resources glpk) endif() # Since there is a shipped version, always use GLPK set(STORM_HAVE_GLPK ON) -message (STATUS "StoRM - Linking with glpk") +message (STATUS "StoRM - Linking with glpk ${GLPK_VERSION_STRING}") include_directories(${GLPK_INCLUDE_DIR}) list(APPEND STORM_LINK_LIBRARIES ${GLPK_LIBRARIES}) @@ -319,10 +319,11 @@ endif() set(CUDD_INCLUDE_DIR ${CMAKE_BINARY_DIR}/resources/3rdparty/cudd-3.0.0/include) set(CUDD_SHARED_LIBRARY ${CMAKE_BINARY_DIR}/resources/3rdparty/cudd-3.0.0/lib/libcudd${DYNAMIC_EXT}) set(CUDD_STATIC_LIBRARY ${CMAKE_BINARY_DIR}/resources/3rdparty/cudd-3.0.0/lib/libcudd${STATIC_EXT}) +set(CUDD_VERSION_STRING 3.0.0) list(APPEND STORM_LINK_LIBRARIES ${CUDD_SHARED_LIBRARY}) add_dependencies(resources cudd3) -message(STATUS "StoRM - Linking with CUDD") +message(STATUS "StoRM - Linking with CUDD ${CUDD_VERSION_STRING}") #message("StoRM - CUDD include dir: ${CUDD_INCLUDE_DIR}") include_directories(${CUDD_INCLUDE_DIR}) @@ -336,7 +337,7 @@ find_package(CLN QUIET) if(CLN_FOUND) set(STORM_HAVE_CLN ON) - message(STATUS "StoRM - Linking with CLN") + message(STATUS "StoRM - Linking with CLN ${CLN_VERSION_STRING}") include_directories("${CLN_INCLUDE_DIR}") list(APPEND STORM_LINK_LIBRARIES ${CLN_LIBRARIES}) else() @@ -357,7 +358,7 @@ if(USE_CARL) find_package(carl QUIET REQUIRED) if(carl_FOUND) set(STORM_HAVE_CARL ON) - message(STATUS "StoRM - Linking with carl") + message(STATUS "StoRM - Linking with carl ${carl_VERSION_STRING}") include_directories("${carl_INCLUDE_DIR}") list(APPEND STORM_LINK_LIBRARIES ${carl_LIBRARIES}) else() @@ -391,9 +392,9 @@ endif() find_package(GiNaC QUIET) -if(GiNaC_FOUND) +if(GINAC_FOUND) set(STORM_HAVE_GINAC ON) - message(STATUS "StoRM - Linking with GiNaC") + message(STATUS "StoRM - Linking with GiNaC ${GINAC_VERSION_STRING}") # Right now only link with GiNaC for carl #include_directories("${GINAC_INCLUDE_DIR}") list(APPEND STORM_LINK_LIBRARIES ${GINAC_LIBRARIES}) @@ -473,7 +474,7 @@ add_dependencies(resources sylvan) if(${OPERATING_SYSTEM} MATCHES "Linux") find_package(Hwloc QUIET REQUIRED) if(Hwloc_FOUND) - message(STATUS "StoRM - Linking with hwloc") + message(STATUS "StoRM - Linking with hwloc ${Hwloc_VERSION}") list(APPEND STORM_LINK_LIBRARIES ${Hwloc_LIBRARIES}) else() message(FATAL_ERROR "HWLOC is required but was not found.")