Use a more compatible way to locate python interpreter executable. (#28)

This commit is contained in:
Tian Jin 2020-01-13 21:52:54 -05:00 committed by GitHub
parent 22a6bdc574
commit deef363309
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -1,8 +1,7 @@
find_package(Python3 REQUIRED
COMPONENTS Interpreter)
find_package(PythonInterp 3 REQUIRED)
add_custom_target(check-doc
COMMAND Python3::Interpreter
COMMAND ${PYTHON_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/check.py
${CMAKE_SOURCE_DIR}
--exclude_dirs third_party doc/doc_check/test)