Including a check for the DAGMC version.

This commit is contained in:
Patrick Shriwise 2021-01-16 12:34:10 -06:00
parent 6059d074c3
commit 1baf921d2f

View file

@ -40,6 +40,10 @@ endif()
#===============================================================================
if(dagmc)
find_package(DAGMC REQUIRED PATH_SUFFIXES lib/cmake)
if (${DAGMC_VERSION} VERSION_LESS 3.2.0)
message(FATAL_ERROR "Discovered DAGMC Version: ${DAGMC_VERSION}. \
Please update DAGMC to version 3.2.0 or greater.")
endif()
endif()
#===============================================================================
@ -329,7 +333,7 @@ endif()
# Avoid vs error lnk1149 :output filename matches input filename
if(NOT MSVC)
set_target_properties(libopenmc PROPERTIES
OUTPUT_NAME openmc)
OUTPUT_NAME openmc)
endif()
target_include_directories(libopenmc