From 820cd5e55e7fc2ddc807645e022ef47354ec1999 Mon Sep 17 00:00:00 2001 From: Ryan Herbst Date: Fri, 9 Aug 2024 11:08:42 -0700 Subject: [PATCH] Update template --- templates/RogueConfig.cmake.in | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/templates/RogueConfig.cmake.in b/templates/RogueConfig.cmake.in index 70091becf..6d891b227 100644 --- a/templates/RogueConfig.cmake.in +++ b/templates/RogueConfig.cmake.in @@ -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 @@ -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 @@ -88,6 +85,7 @@ if ( NOT NO_PYTHON ) message("") message(FATAL_ERROR "Failed to find boost libraries!") endif() + else() add_definitions( -DNO_PYTHON ) endif()