Skip to content

Commit

Permalink
Re #6201. Requiring NeXus v4.3.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Jan 30, 2013
1 parent 0f03d0f commit 1cea543
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Code/Mantid/Build/CMake/CommonSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ add_definitions ( -DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG )
find_package ( Poco REQUIRED )
include_directories( SYSTEM ${POCO_INCLUDE_DIRS} )

find_package ( Nexus REQUIRED )
find_package ( Nexus 4.3.0 REQUIRED )
include_directories ( SYSTEM ${NEXUS_INCLUDE_DIR} )

find_package ( MuParser REQUIRED )
Expand Down
8 changes: 7 additions & 1 deletion Code/Mantid/Build/CMake/FindNexus.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,10 @@ endif()
# Handle the QUIETLY and REQUIRED arguments and set NEXUS_FOUND to TRUE if
# all listed variables are TRUE
include ( FindPackageHandleStandardArgs )
find_package_handle_standard_args( Nexus DEFAULT_MSG NEXUS_LIBRARIES NEXUS_INCLUDE_DIR )
if (NEXUS_VERSION)
find_package_handle_standard_args( Nexus REQUIRED_VARS NEXUS_LIBRARIES NEXUS_INCLUDE_DIR
VERSION_VAR NEXUS_VERSION )
else (NEXUS_VERSION)
message (status "Failed to determine version: Ignoring version requirement")
find_package_handle_standard_args( Nexus DEFAULT_MSG NEXUS_LIBRARIES NEXUS_INCLUDE_DIR )
endif (NEXUS_VERSION)

0 comments on commit 1cea543

Please sign in to comment.