diff options
author | Nayd <dnpd.dd@gmail.com> | 2014-11-14 00:48:38 +0000 |
---|---|---|
committer | Nayd <dnpd.dd@gmail.com> | 2014-11-14 00:48:38 +0000 |
commit | 7e6dadfea68836cc92aaa7e1bb770be620225aa2 (patch) | |
tree | a0a98dca266208d4496b4a2680f4901e1023d97c | |
parent | a0b4bbe68e5555402b4e08bcab62880863fabad7 (diff) |
CMake/FindBoost: Fix policy CMP0054 warning (added in 3.1)
-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()
|