From ba8f2c48b700a466a8cf7097d5f72d43372d4c37 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 24 Dec 2014 12:48:52 -0700 Subject: Use python2 for man, test scripts. Closes #251. --- man/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'man') 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 ) -- cgit v1.2.3