mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 08:20:18 -06:00
GHS: Correct the regex for the intXXXX directory detection.
The int directory does not only need to contain digits. E.g. C:\GHS\int409a is a valid Green Hills installation
This commit is contained in:
@@ -10,7 +10,7 @@ if (NOT GHS_INT_DIRECTORY)
|
||||
if (EXISTS ${GHS_EXPECTED_ROOT})
|
||||
FILE(GLOB GHS_CANDIDATE_INT_DIRS RELATIVE
|
||||
${GHS_EXPECTED_ROOT} ${GHS_EXPECTED_ROOT}/*)
|
||||
string(REGEX MATCHALL "int[0-9][0-9][0-9][0-9]" GHS_CANDIDATE_INT_DIRS
|
||||
string(REGEX MATCHALL "int[0-9][0-9][0-9][0-9a-z]" GHS_CANDIDATE_INT_DIRS
|
||||
${GHS_CANDIDATE_INT_DIRS})
|
||||
if (GHS_CANDIDATE_INT_DIRS)
|
||||
list(SORT GHS_CANDIDATE_INT_DIRS)
|
||||
|
||||
Reference in New Issue
Block a user