[ITK] [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

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-developers


More information about the Community mailing list