deal with Boost 1.89 not having system as component anymore.

This commit is contained in:
2025-11-25 08:29:45 +01:00
parent b658b8b9de
commit 2fd0248e37
2 changed files with 26 additions and 10 deletions

View File

@@ -92,11 +92,19 @@ endif ()
set(ROOT_GRTEQ_24 ${ROOT_GRTEQ_24} CACHE INTERNAL "ROOT Version check") set(ROOT_GRTEQ_24 ${ROOT_GRTEQ_24} CACHE INTERNAL "ROOT Version check")
#--- check for boost ---------------------------------------------------------- #--- check for boost ----------------------------------------------------------
find_package(Boost REQUIRED find_package(Boost QUIET)
COMPONENTS if (Boost_VERSION VERSION_GREATER_EQUAL "1.89")
system find_package(Boost REQUIRED
filesystem COMPONENTS
) filesystem
)
else (Boost_VERSION VERSION_GREATER_EQUAL "1.89")
find_package(Boost REQUIRED
COMPONENTS
system
filesystem
)
endif (Boost_VERSION VERSION_GREATER_EQUAL "1.89")
message(STATUS "Boost libs: ${Boost_LIBRARIES}") message(STATUS "Boost libs: ${Boost_LIBRARIES}")
#--- check for gsl ------------------------------------------------------------ #--- check for gsl ------------------------------------------------------------

View File

@@ -22,11 +22,19 @@ if (ROOT_mathmore_FOUND)
endif (ROOT_mathmore_FOUND) endif (ROOT_mathmore_FOUND)
#--- check for boost ---------------------------------------------------------- #--- check for boost ----------------------------------------------------------
find_package(Boost REQUIRED find_package(Boost QUIET)
COMPONENTS if (Boost_VERSION VERSION_GREATER_EQUAL "1.89")
system find_package(Boost REQUIRED
filesystem COMPONENTS
) filesystem
)
else (Boost_VERSION VERSION_GREATER_EQUAL "1.89")
find_package(Boost REQUIRED
COMPONENTS
system
filesystem
)
endif (Boost_VERSION VERSION_GREATER_EQUAL "1.89")
message(STATUS "Boost libs: ${Boost_LIBRARIES}") message(STATUS "Boost libs: ${Boost_LIBRARIES}")
#--- check for fftw3 ---------------------------------------------------------- #--- check for fftw3 ----------------------------------------------------------