aboutsummaryrefslogtreecommitdiffstats
path: root/src/resources/CMakeLists.txt
diff options
context:
space:
mode:
authorxz-dev <xiangzhedev@gmail.com>2024-10-23 20:00:38 +0800
committermark9064 <30447455+mark9064@users.noreply.github.com>2024-11-17 23:36:22 +0000
commita77a3dcb8b12fbec0ee6f98bce1f08578a9a90b2 (patch)
tree172913b0f10a5cc2befcb14670ebbf27364a5f42 /src/resources/CMakeLists.txt
parent8aefa3b9a613adb6a2f91b28caf40f82415c3151 (diff)
cmake: fix python path with use multi-version python
Diffstat (limited to 'src/resources/CMakeLists.txt')
-rw-r--r--src/resources/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resources/CMakeLists.txt b/src/resources/CMakeLists.txt
index 3834e854..9181d4a6 100644
--- a/src/resources/CMakeLists.txt
+++ b/src/resources/CMakeLists.txt
@@ -10,6 +10,7 @@ message(STATUS "Using ${LV_IMG_CONV} to generate font files")
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.12)
# FindPython3 module introduces with CMake 3.12
# https://cmake.org/cmake/help/latest/module/FindPython3.html
+ set(Python3_FIND_STRATEGY LOCATION) # https://discourse.cmake.org/t/find-package-python3-is-not-finding-the-correct-python/10563
find_package(Python3 REQUIRED)
else()
set(Python3_EXECUTABLE "python")