From 9c2a38b836633c6b91e64f8ba9e7105b3f4afaf2 Mon Sep 17 00:00:00 2001 From: Philip Lowman Date: Sun, 20 Sep 2009 11:33:06 -0400 Subject: [PATCH] Fix boost library detection with Sun Studio compiler (Issue #9153) --- Modules/FindBoost.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake index 7dea995e6..29b94c1b2 100644 --- a/Modules/FindBoost.cmake +++ b/Modules/FindBoost.cmake @@ -563,6 +563,8 @@ ELSE (_boost_IN_CACHE) else() set (_boost_COMPILER "-il") endif() + elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "SunPro") + set(_boost_COMPILER "-sw") elseif (MINGW) if(${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION} VERSION_LESS 1.34) SET(_boost_COMPILER "-mgw") # no GCC version encoding prior to 1.34