diff options
author | Nayd <dnpd.dd@gmail.com> | 2014-11-14 00:48:38 +0000 |
---|---|---|
committer | Nayd <dnpd.dd@gmail.com> | 2014-11-16 21:45:51 +0000 |
commit | d8ec7011b636c47f8426ece46a4c14e990815484 (patch) | |
tree | 600eba65f71076bf0522ae6d009f26fe55887370 | |
parent | 1119558b9e4e525af05875867afa864df5e808ee (diff) |
CMake/FindBoost: Fix policy CMP0054 warning (added in 3.1)
(cherry picked from commit 7e6dadfea68836cc92aaa7e1bb770be620225aa2)
-rw-r--r-- | cmake/macros/FindBoost.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/macros/FindBoost.cmake b/cmake/macros/FindBoost.cmake index ebd1c29598a..d90a9c12c16 100644 --- a/cmake/macros/FindBoost.cmake +++ b/cmake/macros/FindBoost.cmake @@ -341,9 +341,9 @@ endfunction() # Guesses Boost's compiler prefix used in built library names
# Returns the guess by setting the variable pointed to by _ret
function(_Boost_GUESS_COMPILER_PREFIX _ret)
- if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel"
- OR "${CMAKE_CXX_COMPILER}" MATCHES "icl"
- OR "${CMAKE_CXX_COMPILER}" MATCHES "icpc")
+ if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel"
+ OR ${CMAKE_CXX_COMPILER} MATCHES "icl"
+ OR ${CMAKE_CXX_COMPILER} MATCHES "icpc")
if(WIN32)
set (_boost_COMPILER "-iw")
else()
|