Use a more compatible way to locate python interpreter executable. (#28)
This commit is contained in:
parent
22a6bdc574
commit
deef363309
|
@ -1,8 +1,7 @@
|
||||||
find_package(Python3 REQUIRED
|
find_package(PythonInterp 3 REQUIRED)
|
||||||
COMPONENTS Interpreter)
|
|
||||||
|
|
||||||
add_custom_target(check-doc
|
add_custom_target(check-doc
|
||||||
COMMAND Python3::Interpreter
|
COMMAND ${PYTHON_EXECUTABLE}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/check.py
|
${CMAKE_CURRENT_SOURCE_DIR}/check.py
|
||||||
${CMAKE_SOURCE_DIR}
|
${CMAKE_SOURCE_DIR}
|
||||||
--exclude_dirs third_party doc/doc_check/test)
|
--exclude_dirs third_party doc/doc_check/test)
|
||||||
|
|
Loading…
Reference in New Issue