# Test "make install"
if("x${CMAKE_INSTALL_PREFIX}" MATCHES "^x${ITK_BINARY_DIR}/InstallTest$")
  itk_add_test(NAME Install
    COMMAND ${CMAKE_COMMAND} -DCONFIGURATION=$<CONFIGURATION>
                             -DITK_BINARY_DIR=${ITK_BINARY_DIR}
                             -P ${CMAKE_CURRENT_SOURCE_DIR}/InstallTest.cmake
    )
endif()

# Test "make install"
if("x${CMAKE_INSTALL_PREFIX}" STREQUAL "x${ITK_BINARY_DIR}/InstallTest")
  itk_add_test(NAME Install
    COMMAND ${CMAKE_COMMAND} -DCONFIGURATION=$<CONFIGURATION>
                             -DITK_BINARY_DIR=${ITK_BINARY_DIR}
                             -P ${CMAKE_CURRENT_SOURCE_DIR}/InstallTest.cmake
    )
endif()

Use STREQUAL instead of MATCH
COMP: Use STREQUAL instead of MATCH

When the path has items that could be interpreted
as regular expression directives, the
intended string matching causes cmake
configuration failures.

==================================
CMake Error at Utilities/InstallTest/CMakeLists.txt:2 (if):
if given arguments:

     "x/usr/local" "MATCHES" "^x/bld/Dashboard/src/ITK-clang++11/InstallTest\$"

Regular expression "^x/bld/Dashboard/src/ITK-clang++11/InstallTest$" cannot compile
==================================

Solution provided by Brad King.

Change-Id: Ib45fc733d35e01fc95340cc4f45df9c26f44db3b
