summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindITK.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindITK.cmake b/Modules/FindITK.cmake
index 4858f5f..c997505 100644
--- a/Modules/FindITK.cmake
+++ b/Modules/FindITK.cmake
@@ -27,9 +27,9 @@
IF(NOT ITK_DIR)
# Get the system search path as a list.
IF(UNIX)
- STRING(REGEX MATCHALL "[^:]+" ITK_DIR_SEARCH1 $ENV{PATH})
+ STRING(REGEX MATCHALL "[^:]+" ITK_DIR_SEARCH1 "$ENV{PATH}")
ELSE(UNIX)
- STRING(REGEX REPLACE "\\\\" "/" ITK_DIR_SEARCH1 $ENV{PATH})
+ STRING(REGEX REPLACE "\\\\" "/" ITK_DIR_SEARCH1 "$ENV{PATH}")
ENDIF(UNIX)
STRING(REGEX REPLACE "/;" ";" ITK_DIR_SEARCH2 ${ITK_DIR_SEARCH1})