diff options
Diffstat (limited to 'man/CMakeLists.txt')
-rw-r--r-- | man/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt index 2c3f5ef..b37966a 100644 --- a/man/CMakeLists.txt +++ b/man/CMakeLists.txt @@ -1,3 +1,5 @@ +set(PYTHON python2) + if (NOT MSVC) add_custom_target(man ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/cmark.3 @@ -6,7 +8,7 @@ if (NOT MSVC) add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/cmark.3 DEPENDS ${CMAKE_SOURCE_DIR}/src/cmark.h - COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/make_man_page.py + COMMAND ${PYTHON} ${CMAKE_CURRENT_SOURCE_DIR}/make_man_page.py ${CMAKE_SOURCE_DIR}/src/cmark.h > ${CMAKE_CURRENT_BINARY_DIR}/cmark.3 ) |