Skip to content
Snippets Groups Projects
Commit 1cdec5ff authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Use Python_FIND_STRATEGY LOCATION

this allows to point CMake to a version of Python of our choice,
despite what is available on the PATH.
parent 043fdd70
No related branches found
No related tags found
1 merge request!1157Do not set Python_FIND_STRATEGY
Pipeline #2115891 passed
......@@ -106,7 +106,7 @@ foreach(component IN ITEMS system filesystem regex thread python unit_test_frame
mark_as_advanced(boost_${component}_DIR)
endforeach()
set(Python_FIND_STRATEGY VERSION) # Find latest version available
set(Python_FIND_STRATEGY LOCATION) # Trust search hints to find the wanted Python
if(GAUDI_USE_PYTHON_MAJOR STREQUAL "2")
set(_gaudi_Python_MIN_VERSION 2.7.15)
elseif(GAUDI_USE_PYTHON_MAJOR STREQUAL "3")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment