CMakeDetermineCompilerId: Fix local var init
Add initialization of the ARCHITECTURE_ID local and fix the initialization of the COMPILER_ID_TWICE local.
This commit is contained in:
parent
e20edcdb3d
commit
be10826bf1
|
@ -308,9 +308,10 @@ function(CMAKE_DETERMINE_COMPILER_ID_CHECK lang file)
|
|||
set(COMPILER_ID)
|
||||
set(COMPILER_VERSION)
|
||||
set(PLATFORM_ID)
|
||||
set(ARCHITECTURE_ID)
|
||||
file(STRINGS ${file}
|
||||
CMAKE_${lang}_COMPILER_ID_STRINGS LIMIT_COUNT 4 REGEX "INFO:")
|
||||
set(HAVE_COMPILER_TWICE 0)
|
||||
set(COMPILER_ID_TWICE)
|
||||
foreach(info ${CMAKE_${lang}_COMPILER_ID_STRINGS})
|
||||
if("${info}" MATCHES ".*INFO:compiler\\[([^]\"]*)\\].*")
|
||||
if(COMPILER_ID)
|
||||
|
|
Loading…
Reference in New Issue