GenerateExportHeader: use double quotes around _gcc_version

The GenerateExportHeaders test was failing on one machine, the version
could not be determined there, so the _gcc_version was empty,
so the first argument to if() was empty, so it complained:
http://open.cdash.org/testDetails.php?test=135623436&build=2016288
Use double quotes to turn the non-existant first argument into an empty
string.

Alex
This commit is contained in:
Alex Neundorf 2012-02-18 20:58:19 +01:00
parent d03606a19c
commit 54e1f6f5a5
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ macro(_test_compiler_hidden_visibility)
_gcc_version "${_gcc_version_info}") _gcc_version "${_gcc_version_info}")
endif() endif()
if(${_gcc_version} VERSION_LESS "4.2") if("${_gcc_version}" VERSION_LESS "4.2")
set(GCC_TOO_OLD TRUE) set(GCC_TOO_OLD TRUE)
message(WARNING "GCC version older than 4.2") message(WARNING "GCC version older than 4.2")
endif() endif()