Explorar o código

Fix boost library detection with Sun Studio compiler (Issue #9153)

Philip Lowman %!s(int64=16) %!d(string=hai) anos
pai
achega
9c2a38b836
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Modules/FindBoost.cmake

+ 2 - 0
Modules/FindBoost.cmake

@@ -563,6 +563,8 @@ ELSE (_boost_IN_CACHE)
       else()
       else()
         set (_boost_COMPILER "-il")
         set (_boost_COMPILER "-il")
       endif()
       endif()
+    elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "SunPro")
+      set(_boost_COMPILER "-sw")
     elseif (MINGW)
     elseif (MINGW)
       if(${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION} VERSION_LESS 1.34)
       if(${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION} VERSION_LESS 1.34)
           SET(_boost_COMPILER "-mgw") # no GCC version encoding prior to 1.34
           SET(_boost_COMPILER "-mgw") # no GCC version encoding prior to 1.34