Skip to content
Snippets Groups Projects

[bugfix][FindPython3] Set policy 0094 to NEW.

Merged Robert K requested to merge bugfix/find-python into master
1 unresolved thread
@@ -54,6 +54,11 @@
#
include_guard(GLOBAL)
+1
# switches ``Python3_FIND_STRATEGY`` from VERSION to LOCATION which is the new default
if(POLICY CMP0094)
cmake_policy(SET CMP0094 NEW)
endif()
# unless the user has defined the variable, unversioned names (like python3) are found
# first, to match what users most probably use later on to call the executable
if(NOT DEFINED Python3_FIND_UNVERSIONED_NAMES)
Loading