summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorPhilip Lowman <philip@yhbt.com>2009-09-20 15:33:06 (GMT)
committerPhilip Lowman <philip@yhbt.com>2009-09-20 15:33:06 (GMT)
commit9c2a38b836633c6b91e64f8ba9e7105b3f4afaf2 (patch)
tree2233407d50abca6214ca50c6d80aca168e4835d7 /Modules
parentcabca8d90339315a7e54db10b4553b3171dc31b7 (diff)
downloadCMake-9c2a38b836633c6b91e64f8ba9e7105b3f4afaf2.zip
CMake-9c2a38b836633c6b91e64f8ba9e7105b3f4afaf2.tar.gz
CMake-9c2a38b836633c6b91e64f8ba9e7105b3f4afaf2.tar.bz2
Fix boost library detection with Sun Studio compiler (Issue #9153)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindBoost.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index 7dea995..29b94c1 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