Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90987342
boost.cmake
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Nov 6, 16:43
Size
2 KB
Mime Type
text/x-tex
Expires
Fri, Nov 8, 16:43 (2 d)
Engine
blob
Format
Raw Data
Handle
16892261
Attached To
rAKA akantu
boost.cmake
View Options
#===============================================================================
# @file boost.cmake
#
# @author Nicolas Richart <nicolas.richart@epfl.ch>
#
# @date creation: Fri Sep 03 2010
# @date last modification: Wed Jan 20 2016
#
# @brief package handling the dependencies to boost
#
# @section LICENSE
#
# Copyright (©) 2010-2012, 2014, 2015 EPFL (Ecole Polytechnique Fédérale de
# Lausanne) Laboratory (LSMS - Laboratoire de Simulation en Mécanique des
# Solides)
#
# Akantu is free software: you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#
# Akantu is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Akantu. If not, see <http://www.gnu.org/licenses/>.
#
#===============================================================================
set(Boost_NO_BOOST_CMAKE ON CACHE BOOL "" FORCE)
package_declare(Boost EXTERNAL
NOT_OPTIONAL
DESCRIPTION "Package handling boost components"
EXTRA_PACKAGE_OPTIONS PREFIX Boost
)
mask_package_options(Boost)
mark_as_advanced(AKANTU_USE_BOOST)
package_on_enabled_script(Boost
"if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER \"4.8\")
set(_boost_version \${Boost_MAJOR_VERSION}.\${Boost_MINOR_VERSION})
if(_boost_version VERSION_LESS 1.58 AND _boost_version VERSION_GREATER 1.53)
package_set_compile_flags(Boost CXX -DBOOST_SPIRIT_USE_PHOENIX_V3)
else()
package_unset_compile_flags(Boost CXX)
endif()
endif()
")
package_declare_documentation(Boost
"Akantu uses Boost header only for preprocessor and Spirit"
""
"Under Ubuntu (14.04 LTS) the installation can be performed using the commands:"
"\\begin{command}"
" > sudo apt-get install libboost"
"\\end{command}"
""
)
package_set_package_system_dependency(Boost deb-src libboost-dev)
# only build dependency
# package_set_package_system_dependency(Boost deb libboost)
# package_set_package_system_dependency(Boost rmp boost)
Event Timeline
Log In to Comment