Skip to content

Commit a77a3dc

Browse files
xz-devmark9064
authored andcommitted
cmake: fix python path with use multi-version python
1 parent 8aefa3b commit a77a3dc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/displayapp/fonts/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ configure_file(${CMAKE_CURRENT_LIST_DIR}/jetbrains_mono_bold_20.c_M.patch
1111
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.12)
1212
# FindPython3 module introduces with CMake 3.12
1313
# https://cmake.org/cmake/help/latest/module/FindPython3.html
14+
set(Python3_FIND_STRATEGY LOCATION) # https://discourse.cmake.org/t/find-package-python3-is-not-finding-the-correct-python/10563
1415
find_package(Python3 REQUIRED)
1516
else()
1617
set(Python3_EXECUTABLE "python")

src/resources/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ message(STATUS "Using ${LV_IMG_CONV} to generate font files")
1010
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.12)
1111
# FindPython3 module introduces with CMake 3.12
1212
# https://cmake.org/cmake/help/latest/module/FindPython3.html
13+
set(Python3_FIND_STRATEGY LOCATION) # https://discourse.cmake.org/t/find-package-python3-is-not-finding-the-correct-python/10563
1314
find_package(Python3 REQUIRED)
1415
else()
1516
set(Python3_EXECUTABLE "python")

0 commit comments

Comments
 (0)