BUG: fix for bug 608

This commit is contained in:
Bill Hoffman 2004-04-14 17:02:40 -04:00
parent 7fa36510d5
commit c7a42a1b1f
1 changed files with 2 additions and 2 deletions

View File

@ -27,9 +27,9 @@
IF(NOT ITK_DIR) IF(NOT ITK_DIR)
# Get the system search path as a list. # Get the system search path as a list.
IF(UNIX) IF(UNIX)
STRING(REGEX MATCHALL "[^:]+" ITK_DIR_SEARCH1 $ENV{PATH}) STRING(REGEX MATCHALL "[^:]+" ITK_DIR_SEARCH1 "$ENV{PATH}")
ELSE(UNIX) ELSE(UNIX)
STRING(REGEX REPLACE "\\\\" "/" ITK_DIR_SEARCH1 $ENV{PATH}) STRING(REGEX REPLACE "\\\\" "/" ITK_DIR_SEARCH1 "$ENV{PATH}")
ENDIF(UNIX) ENDIF(UNIX)
STRING(REGEX REPLACE "/;" ";" ITK_DIR_SEARCH2 ${ITK_DIR_SEARCH1}) STRING(REGEX REPLACE "/;" ";" ITK_DIR_SEARCH2 ${ITK_DIR_SEARCH1})