forked from Eyescale/CMake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FindBoostConfig.cmake
22 lines (20 loc) · 972 Bytes
/
FindBoostConfig.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright (c) 2012-2015, Stefan Eilemann <[email protected]>
# 2013-2015, Daniel Nachbaur <[email protected]>
# 2013-2015, Ahmet Bilgili <[email protected]>
# 2015, Raphael Dumuc <[email protected]>
#
# Boost settings to ensure that the Boost finder works in some platforms
# (e.g. RHEL 6.5)
set(Boost_NO_BOOST_CMAKE ON CACHE BOOL "Enable fix for FindBoost.cmake" )
set(Boost_DETAILED_FAILURE_MSG ON) # Output which components are missing
add_definitions(-DBOOST_ALL_NO_LIB) # Don't use 'pragma lib' on Windows
add_definitions(-DBoost_NO_BOOST_CMAKE) # Fix for CMake problem in FindBoost
if(NOT "$ENV{BOOST_ROOT}" STREQUAL "" OR
NOT "$ENV{BOOST_LIBRARYDIR}" STREQUAL "")
# Fix find of non-system Boost
option(Boost_NO_SYSTEM_PATHS "Disable system paths for FindBoost" ON)
endif()
if(CMAKE_COMPILER_IS_XLCXX AND XLC_BACKEND)
set(Boost_NO_BOOST_CMAKE TRUE)
set(Boost_USE_STATIC_LIBS TRUE)
endif()