summaryrefslogtreecommitdiffstats
path: root/Modules/FindBoost.cmake
diff options
context:
space:
mode:
authorErik Zenker <erikzenker@posteo.de>2016-03-23 10:44:56 (GMT)
committerBrad King <brad.king@kitware.com>2016-03-23 17:41:42 (GMT)
commit4527b9c41680aab191de7f37eca3fa47f1b07478 (patch)
tree8ae07fcb310513f67ba07846a59d3fa57e033e02 /Modules/FindBoost.cmake
parent38caf1bb7459d17339d06516eeb4e21787c14bd9 (diff)
downloadCMake-4527b9c41680aab191de7f37eca3fa47f1b07478.zip
CMake-4527b9c41680aab191de7f37eca3fa47f1b07478.tar.gz
CMake-4527b9c41680aab191de7f37eca3fa47f1b07478.tar.bz2
FindBoost: Add support for IBM XL compiler
Diffstat (limited to 'Modules/FindBoost.cmake')
-rw-r--r--Modules/FindBoost.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index 728dcdf..9e6083db 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -464,6 +464,8 @@ function(_Boost_GUESS_COMPILER_PREFIX _ret)
set(_boost_COMPILER "-bcb")
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "SunPro")
set(_boost_COMPILER "-sw")
+ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "XL")
+ set(_boost_COMPILER "-xlc")
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