diff options
| -rw-r--r-- | host/cmake/Modules/UHDPython.cmake | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/host/cmake/Modules/UHDPython.cmake b/host/cmake/Modules/UHDPython.cmake index f5e67fc2d..87b974083 100644 --- a/host/cmake/Modules/UHDPython.cmake +++ b/host/cmake/Modules/UHDPython.cmake @@ -6,6 +6,14 @@  # SPDX-License-Identifier: GPL-3.0-or-later  # +if (POLICY CMP0094) +  # See https://cmake.org/cmake/help/v3.15/policy/CMP0094.html +  # set Python3_FIND_STRATEGY to LOCATION - this ensures that Python from +  # sysroot is used first when cross-compiling +  # note: policy CMP0094 is available starting with CMake 3.15 +  cmake_policy(SET CMP0094 NEW) +endif() +  if(NOT DEFINED INCLUDED_UHD_PYTHON_CMAKE)  set(INCLUDED_UHD_PYTHON_CMAKE TRUE)  | 
