mirror of
https://github.com/savoirfairelinux/jami-client-qt.git
synced 2025-12-18 08:35:26 +08:00
cmake: fix recently broken build
FindPython3 sets a different variable than the old FindPythonInterp, namely it sets Python3_EXECUTABLE instead of PYTHON_EXECUTABLE. Change-Id: I423bf0b9eb68d9fea42f8f51b72154a01449f095
This commit is contained in:
@@ -32,11 +32,13 @@ file(GLOB_RECURSE
|
||||
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.12.0")
|
||||
include(FindPython3)
|
||||
find_package (Python3 COMPONENTS Interpreter)
|
||||
set(PYTHON_EXEC ${Python3_EXECUTABLE})
|
||||
else()
|
||||
include(FindPythonInterp)
|
||||
set(PYTHON_EXEC ${PYTHON_EXECUTABLE})
|
||||
endif()
|
||||
execute_process(
|
||||
COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/gen-resources.py
|
||||
COMMAND ${PYTHON_EXEC} ${PROJECT_SOURCE_DIR}/gen-resources.py
|
||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user