Skip to content

Commit e06cbf6

Browse files
committed
Update Boost detection to CMake's CONFIG scheme
1 parent f2a6e58 commit e06cbf6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

cmake/ProcessOptions.cmake

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,9 @@ function( NEST_PROCESS_WITH_GSL )
294294
set( GSL_ROOT "${with-gsl}" )
295295
endif ()
296296

297-
find_package( GSL )
297+
find_package( GSL 1.11 )
298298

299-
# only allow GSL 1.11 and later
300-
if ( GSL_FOUND AND ( "${GSL_VERSION}" VERSION_GREATER "1.11"
301-
OR "${GSL_VERSION}" VERSION_EQUAL "1.11" ))
299+
if ( GSL_FOUND )
302300
set( HAVE_GSL ON PARENT_SCOPE )
303301

304302
# export found variables to parent scope
@@ -550,7 +548,8 @@ function( NEST_PROCESS_WITH_BOOST )
550548
set(Boost_USE_RELEASE_LIBS ON) # only find release libs
551549
# Needs Boost version >=1.62.0 to use Boost sorting, JUNIT logging
552550
# Require Boost version >=1.69.0 due to change in Boost sort
553-
find_package( Boost 1.69.0 )
551+
# Require Boost version >=1.70.0 due to change in package finding
552+
find_package( Boost 1.70 CONFIG )
554553
if ( Boost_FOUND )
555554
# export found variables to parent scope
556555
set( HAVE_BOOST ON PARENT_SCOPE )

0 commit comments

Comments
 (0)