Removed useless .*
authorAlexander Shishkov <shishkov.alexander@gmail.com>
Tue, 6 Aug 2013 10:28:07 +0000 (14:28 +0400)
committerAlexander Shishkov <shishkov.alexander@gmail.com>
Tue, 6 Aug 2013 10:28:07 +0000 (14:28 +0400)
cmake/OpenCVDetectPython.cmake

index 81b65eb..54ddac1 100644 (file)
@@ -108,7 +108,7 @@ if(PYTHON_EXECUTABLE)
                         OUTPUT_QUIET
                         ERROR_VARIABLE SPHINX_OUTPUT
                         OUTPUT_STRIP_TRAILING_WHITESPACE)
-        if(SPHINX_OUTPUT MATCHES ".*Sphinx v([0-9][^ \n]*)")
+        if(SPHINX_OUTPUT MATCHES "Sphinx v([0-9][^ \n]*)")
           set(SPHINX_VERSION "${CMAKE_MATCH_1}")
           set(HAVE_SPHINX 1)
           message(STATUS "Found Sphinx ${SPHINX_VERSION}: ${SPHINX_BUILD}")