summaryrefslogtreecommitdiffstats
path: root/Modules/GenerateExportHeader.cmake
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2012-02-18 19:58:19 (GMT)
committerAlex Neundorf <neundorf@kde.org>2012-02-18 19:58:19 (GMT)
commit54e1f6f5a572e47c5598fd53e3b9eb0a66739def (patch)
tree17b3020e9455b5aaa6b3cffd06f737144fda4041 /Modules/GenerateExportHeader.cmake
parentd03606a19cc05872baf23269ae8ec61d2e0719e8 (diff)
downloadCMake-54e1f6f5a572e47c5598fd53e3b9eb0a66739def.zip
CMake-54e1f6f5a572e47c5598fd53e3b9eb0a66739def.tar.gz
CMake-54e1f6f5a572e47c5598fd53e3b9eb0a66739def.tar.bz2
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
Diffstat (limited to 'Modules/GenerateExportHeader.cmake')
-rw-r--r--Modules/GenerateExportHeader.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake
index 781b6e7..f3f61f6 100644
--- a/Modules/GenerateExportHeader.cmake
+++ b/Modules/GenerateExportHeader.cmake
@@ -173,7 +173,7 @@ macro(_test_compiler_hidden_visibility)
_gcc_version "${_gcc_version_info}")
endif()
- if(${_gcc_version} VERSION_LESS "4.2")
+ if("${_gcc_version}" VERSION_LESS "4.2")
set(GCC_TOO_OLD TRUE)
message(WARNING "GCC version older than 4.2")
endif()