From e46d98a16238abcd5d4596013aa8009ce15ec5ed Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Tue, 7 Jun 2011 10:22:32 +0000 Subject: [PATCH] excluded "-B" flag for better compatibility with old Python. --- modules/python/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/python/CMakeLists.txt b/modules/python/CMakeLists.txt index 742eeb5aba..73f3f503e8 100644 --- a/modules/python/CMakeLists.txt +++ b/modules/python/CMakeLists.txt @@ -77,7 +77,7 @@ set(cv2_generated_hdrs add_custom_command( OUTPUT ${cv2_generated_hdrs} - COMMAND ${PYTHON_EXECUTABLE} -B "${CMAKE_CURRENT_SOURCE_DIR}/src2/gen2.py" ${CMAKE_CURRENT_BINARY_DIR} ${opencv_hdrs} + COMMAND ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/src2/gen2.py" ${CMAKE_CURRENT_BINARY_DIR} ${opencv_hdrs} DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/src2/gen2.py DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/src2/hdr_parser.py DEPENDS ${opencv_hdrs})