Page MenuHomec4science

boost.cmake
No OneTemporary

File Metadata

Created
Sat, May 4, 20:50

boost.cmake

#===============================================================================
# @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