set cmake Boost find policy. Removed NeXus library find from cmake, since it will not be used anymore.

This commit is contained in:
2026-01-25 07:28:47 +01:00
parent 7615e791d3
commit 990e280c8f
2 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,9 @@
# - musrfit
cmake_minimum_required(VERSION 3.17)
# cmake: use BoostConfig.cmake instead of FindBoost
cmake_policy(SET CMP0167 NEW)
project(musrfit VERSION 1.9.10 LANGUAGES C CXX)
#--- musrfit specific options -------------------------------------------------
@@ -206,14 +209,13 @@ if (qt_based_tools)
endif (qt_version STREQUAL 3)
endif (qt_based_tools)
#--- if NeXus check also for HDF4, HDF5, and MXML -----------------------------
#--- if NeXus check also for HDF4 (optional), HDF5 ----------------------------
if (nexus)
find_package(HDF5 COMPONENTS CXX REQUIRED)
if (HAVE_HDF4)
find_package(HDF4 REQUIRED)
add_definitions(-DHAVE_HDF4)
endif (HAVE_HDF4)
find_package(NEXUS REQUIRED)
add_definitions(-DPNEXUS_ENABLED)
endif (nexus)
@@ -316,7 +318,6 @@ if (nexus)
message(" HDF4 not present.")
endif (HAVE_HDF4)
message(" HDF5 found in ${HDF5_INCLUDE_DIRS}, Version: ${HDF5_VERSION}")
message(" NeXus found in ${NEXUS_INCLUDE_DIR}, Version: ${NEXUS_VERSION_STRING}")
endif (nexus)
message("")