Commit a8495801 authored by Boris Nagaev's avatar Boris Nagaev Committed by David Gobbi
Browse files

Fix CMake error if in directory with ++ in name.

If ${VTK_SOURCE_DIR} contains "++", the following error
is produced by CMake:

> RegularExpression::compile(): Nested *?+.
> RegularExpression::compile(): Error in compile.

Use STREQUAL instead of MATCHES to compare strings.
parent bfbdc62b
......@@ -253,7 +253,7 @@ if(PYTHON_EXECUTABLE)
endif ()
endforeach()
if(NOT "${VTK_BINARY_DIR}" MATCHES "^${VTK_SOURCE_DIR}$")
if(NOT "${VTK_BINARY_DIR}" STREQUAL "${VTK_SOURCE_DIR}")
foreach(file ${VTK_PYTHON_FILES})
if (NOT IS_ABSOLUTE "${file}")
set(src "${CMAKE_CURRENT_SOURCE_DIR}/${file}.py")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment