Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update boost detection and issue warning message #3285

Merged
merged 2 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions cmake/ConfigureSummary.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,18 @@ function( NEST_PRINT_CONFIG_SUMMARY )
message( "" )
endif ()

if ( NOT HAVE_BOOST )
message( "" )
message( "ATTENTION!" )
message( "You are about to compile NEST without the Boost Library or" )
message( "your Boost Library is too old (before v1.70). This means" )
message( "that a few neuron models will not be available and that" )
message( "overall performance may be reduced." )
message( "" )
message( "--------------------------------------------------------------------------------" )
message( "" )
endif ()

message( "You can now build and install NEST with" )
message( " make" )
message( " make install" )
Expand Down
9 changes: 4 additions & 5 deletions cmake/ProcessOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,9 @@ function( NEST_PROCESS_WITH_GSL )
set( GSL_ROOT "${with-gsl}" )
endif ()

find_package( GSL )
find_package( GSL 1.11 )

# only allow GSL 1.11 and later
if ( GSL_FOUND AND ( "${GSL_VERSION}" VERSION_GREATER "1.11"
OR "${GSL_VERSION}" VERSION_EQUAL "1.11" ))
if ( GSL_FOUND )
set( HAVE_GSL ON PARENT_SCOPE )

# export found variables to parent scope
Expand Down Expand Up @@ -550,7 +548,8 @@ function( NEST_PROCESS_WITH_BOOST )
set(Boost_USE_RELEASE_LIBS ON) # only find release libs
# Needs Boost version >=1.62.0 to use Boost sorting, JUNIT logging
# Require Boost version >=1.69.0 due to change in Boost sort
find_package( Boost 1.69.0 )
# Require Boost version >=1.70.0 due to change in package finding
find_package( Boost 1.70 CONFIG )
if ( Boost_FOUND )
# export found variables to parent scope
set( HAVE_BOOST ON PARENT_SCOPE )
Expand Down
Loading