We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b878758 commit 8587152Copy full SHA for 8587152
1 file changed
CMakeLists.txt
@@ -25,11 +25,7 @@ install(
25
DESTINATION "${THIRD_PARTY_APP_DST}/josev/iso15118/evcc"
26
)
27
28
-find_program(
29
- PYTHON_EXECUTABLE
30
- python3
31
- REQUIRED
32
-)
+find_package(Python3 COMPONENTS Interpreter)
33
34
ev_create_pip_install_targets(
35
PACKAGE_NAME
@@ -43,7 +39,7 @@ ev_create_python_wheel_targets(
43
39
44
40
add_custom_target(iso15118_requirements_pip_install_dist
45
41
COMMAND
46
- ${PYTHON_EXECUTABLE} -m pip install --force-reinstall -r requirements.txt
42
+ ${Python3_EXECUTABLE} -m pip install --force-reinstall -r requirements.txt
47
WORKING_DIRECTORY
48
${CMAKE_CURRENT_SOURCE_DIR}
49
COMMENT
0 commit comments