diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2014-10-30 14:03:24 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2014-10-30 14:03:24 -0700 |
commit | 69477ad4a0a38c3a2968440fad41d7890aff61b6 (patch) | |
tree | cd014f6937dc6033ec9e9ea37bd451b221b95956 /cmake/Modules | |
parent | beae08be99f41731899697ae9d18c9c20f8629e4 (diff) |
cmake: fixed boost version test
"if(${Boost_VERSION} EQUAL ${ver})" fixed
if ยง{Boost_VERSION} is unset, the expression expands to something like
if( EQUAL "104601" )
which generates a parser error. Since it's a string comparison, anyway,
I replaced it by the specific
if("${Boost_VERSION}" STREQUAL ${ver})
fed
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/GrBoost.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/Modules/GrBoost.cmake b/cmake/Modules/GrBoost.cmake index d2e91a6f16..fcac5cf975 100644 --- a/cmake/Modules/GrBoost.cmake +++ b/cmake/Modules/GrBoost.cmake @@ -87,7 +87,7 @@ set(Boost_NOGO_VERSIONS ) foreach(ver ${Boost_NOGO_VERSIONS}) - if(${Boost_VERSION} EQUAL ${ver}) + if("${Boost_VERSION}" STREQUAL "${ver}") if(NOT ENABLE_BAD_BOOST) MESSAGE(STATUS "WARNING: Found a known bad version of Boost (v${Boost_VERSION}). Disabling.") set(Boost_FOUND FALSE) @@ -95,5 +95,5 @@ foreach(ver ${Boost_NOGO_VERSIONS}) MESSAGE(STATUS "WARNING: Found a known bad version of Boost (v${Boost_VERSION}). Continuing anyway.") set(Boost_FOUND TRUE) endif(NOT ENABLE_BAD_BOOST) - endif(${Boost_VERSION} EQUAL ${ver}) + endif("${Boost_VERSION}" STREQUAL "${ver}") endforeach(ver) |