Browse Source

Merge pull request #8 from kleinj/cmake-old-carl-fix

cmake for carl: handle missing carl version information
tempestpy_adaptions
cdehnert 7 years ago
committed by GitHub
parent
commit
a8d32eb0be
  1. 4
      resources/3rdparty/CMakeLists.txt

4
resources/3rdparty/CMakeLists.txt

@ -227,6 +227,10 @@ if(carl_FOUND AND NOT STORM_FORCE_SHIPPED_CARL)
else() else()
message(SEND_ERROR "File ${carlLOCATION} does not exist, did you build carl?") message(SEND_ERROR "File ${carlLOCATION} does not exist, did you build carl?")
endif() endif()
if("${carl_MINORYEARVERSION}" STREQUAL "" OR "${carl_MINORMONTHVERSION}" STREQUAL "" OR "${carl_MAINTENANCEVERSION}" STREQUAL "")
# don't have detailed version information, probably an old version of carl
message(FATAL_ERROR "Carl at ${carlLOCATION} outdated, require ${CARL_MINYEAR}.${CARL_MINMONTH}.${CARL_MINPATCH}, have ${carl_VERSION}")
endif()
if(${carl_MINORYEARVERSION} LESS ${CARL_MINYEAR}) if(${carl_MINORYEARVERSION} LESS ${CARL_MINYEAR})
message(SEND_ERROR "Carl outdated, require ${CARL_MINYEAR}.${CARL_MINMONTH}.${CARL_MINPATCH}, have ${carl_VERSION}") message(SEND_ERROR "Carl outdated, require ${CARL_MINYEAR}.${CARL_MINMONTH}.${CARL_MINPATCH}, have ${carl_VERSION}")
elseif(${carl_MINORYEARVERSION} EQUAL ${CARL_MINYEAR}) elseif(${carl_MINORYEARVERSION} EQUAL ${CARL_MINYEAR})

Loading…
Cancel
Save