Skip to content

Commit

Permalink
Merge pull request #1020 from slaclab/update_template
Browse files Browse the repository at this point in the history
Fix rogue template for project libraries
  • Loading branch information
slacrherbst authored Aug 17, 2024
2 parents 659d646 + 3893a14 commit 1b6aebd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions templates/RogueConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ set(NO_PYTHON @NO_PYTHON@)
# Boost + Python
#####################################
if ( NOT NO_PYTHON )
# Search for newest version of Python3 first
set(Python3_FIND_STRATEGY "VERSION")

# Find newest python interpreter first
set(Python3_FIND_STRATEGY "LOCATION")
find_package(Python3 QUIET REQUIRED COMPONENTS Interpreter Development)

# Find Numpy
Expand All @@ -49,10 +50,6 @@ if ( NOT NO_PYTHON )
# Hint for boost on anaconda
if (DEFINED ENV{CONDA_PREFIX})
set(Boost_ROOT $ENV{CONDA_PREFIX})

# SLAC AFS custom path
elseif (DEFINED ENV{BOOST_PATH})
set(Boost_ROOT $ENV{BOOST_PATH})
endif()

# libboost_python3.7 style libraries
Expand Down Expand Up @@ -88,6 +85,7 @@ if ( NOT NO_PYTHON )
message("")
message(FATAL_ERROR "Failed to find boost libraries!")
endif()

else()
add_definitions( -DNO_PYTHON )
endif()
Expand Down

0 comments on commit 1b6aebd

Please sign in to comment.