[ITK-dev] CMake Regular Expression Failure

Brad King brad.king at kitware.com
Mon Apr 6 09:06:08 EDT 2015


On 04/06/2015 08:56 AM, Johnson, Hans J wrote:
> I am guessing that the problem is the  “++” in the “clang++11” in the path.

Yes.  We should not be assuming that the path is a valid regex.

> Do you know of a quick remedy to this problem?

Please try this:

-if("x${CMAKE_INSTALL_PREFIX}" MATCHES "^x${ITK_BINARY_DIR}/InstallTest$")
+if("x${CMAKE_INSTALL_PREFIX}" STREQUAL "x${ITK_BINARY_DIR}/InstallTest")

and push the fix to Gerrit for review if it works.

Thanks,
-Brad



More information about the Insight-developers mailing list