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 # - musrfit
cmake_minimum_required(VERSION 3.17) 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) project(musrfit VERSION 1.9.10 LANGUAGES C CXX)
#--- musrfit specific options ------------------------------------------------- #--- musrfit specific options -------------------------------------------------
@@ -206,14 +209,13 @@ if (qt_based_tools)
endif (qt_version STREQUAL 3) endif (qt_version STREQUAL 3)
endif (qt_based_tools) endif (qt_based_tools)
#--- if NeXus check also for HDF4, HDF5, and MXML ----------------------------- #--- if NeXus check also for HDF4 (optional), HDF5 ----------------------------
if (nexus) if (nexus)
find_package(HDF5 COMPONENTS CXX REQUIRED) find_package(HDF5 COMPONENTS CXX REQUIRED)
if (HAVE_HDF4) if (HAVE_HDF4)
find_package(HDF4 REQUIRED) find_package(HDF4 REQUIRED)
add_definitions(-DHAVE_HDF4) add_definitions(-DHAVE_HDF4)
endif (HAVE_HDF4) endif (HAVE_HDF4)
find_package(NEXUS REQUIRED)
add_definitions(-DPNEXUS_ENABLED) add_definitions(-DPNEXUS_ENABLED)
endif (nexus) endif (nexus)
@@ -316,7 +318,6 @@ if (nexus)
message(" HDF4 not present.") message(" HDF4 not present.")
endif (HAVE_HDF4) endif (HAVE_HDF4)
message(" HDF5 found in ${HDF5_INCLUDE_DIRS}, Version: ${HDF5_VERSION}") message(" HDF5 found in ${HDF5_INCLUDE_DIRS}, Version: ${HDF5_VERSION}")
message(" NeXus found in ${NEXUS_INCLUDE_DIR}, Version: ${NEXUS_VERSION_STRING}")
endif (nexus) endif (nexus)
message("") message("")

View File

@@ -2,6 +2,9 @@
cmake_minimum_required(VERSION 3.15) cmake_minimum_required(VERSION 3.15)
# cmake: use BoostConfig.cmake instead of FindBoost
cmake_policy(SET CMP0167 NEW)
project(dump_nonlocal_field VERSION 1.0.0 LANGUAGES C CXX) project(dump_nonlocal_field VERSION 1.0.0 LANGUAGES C CXX)
#--- check for git ------------------------------------------------------------ #--- check for git ------------------------------------------------------------