# Copyright (c) 2014, 2024, Oracle and/or its affiliates. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, # as published by the Free Software Foundation. # # This program is designed to work with certain software (including # but not limited to OpenSSL) that is licensed under separate terms, # as designated in a particular file or component or in included license # documentation. The authors of MySQL hereby grant you an additional # permission to link the program and your derivative works with the # separately licensed software that they have either included with # the program or referenced in the documentation. # # This program 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 General Public License, version 2.0, for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA SET(BOOST_PACKAGE_NAME "boost_1_85_0") # Always use the bundled version. SET(BOOST_SOURCE_DIR ${CMAKE_SOURCE_DIR}/extra/boost) # Contains all header files we need. # (All the directories that contain at least one needed file). SET(BOOST_INCLUDE_DIR ${BOOST_SOURCE_DIR}/${BOOST_PACKAGE_NAME}) ADD_LIBRARY(boost INTERFACE) ADD_LIBRARY(extra::boost ALIAS boost) TARGET_INCLUDE_DIRECTORIES(boost SYSTEM BEFORE INTERFACE ${BOOST_INCLUDE_DIR}) IF(NOT WIN32) # See boost/container_hash/hash.hpp # We pretend that the compiler is pre-c++98, in order to hide the # usage of std::unary_function<..> (which was removed in C++17) # For windows: see boost/config/stdlib/dinkumware.hpp TARGET_COMPILE_DEFINITIONS(boost INTERFACE BOOST_NO_CXX98_FUNCTION_BASE) ENDIF() MESSAGE(STATUS "BOOST_INCLUDE_DIR ${BOOST_INCLUDE_DIR}")