]>
Commit | Line | Data |
---|---|---|
92f5a8d4 | 1 | # Copyright 2018 Mike Dev |
f67539c2 | 2 | # Copyright 2019 Peter Dimov |
92f5a8d4 TL |
3 | # Distributed under the Boost Software License, Version 1.0. |
4 | # See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt | |
5 | # | |
6 | # CAUTION!!!! | |
7 | # | |
8 | # This addition to Boost.Config should be considered experimental and is part | |
9 | # of an ongoing effort to add CMake support Boost-wide. | |
10 | # | |
11 | # IT IS HIGHLY LIKELY THAT THIS FILE WILL CHANGE WITHOUT NOTICE!!! | |
12 | # | |
f67539c2 | 13 | # DO NOT RELY ON THE CONTENTS OF THIS FILE!!! |
92f5a8d4 TL |
14 | # |
15 | ||
f67539c2 TL |
16 | # We support CMake 3.5, but prefer 3.16 policies and behavior |
17 | cmake_minimum_required(VERSION 3.5...3.16) | |
18 | ||
19 | project(boost_config VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX) | |
92f5a8d4 TL |
20 | |
21 | add_library(boost_config INTERFACE) | |
22 | add_library(Boost::config ALIAS boost_config) | |
23 | ||
24 | target_include_directories(boost_config INTERFACE include) | |
f67539c2 TL |
25 | |
26 | # boost_install requires PROJECT_VERSION | |
27 | # Without the superproject, we don't have any, so skip installation | |
28 | ||
29 | if(BOOST_SUPERPROJECT_VERSION) | |
30 | ||
31 | include(BoostInstall) | |
32 | boost_install(TARGETS boost_config HEADER_DIRECTORY include/) | |
33 | ||
34 | endif() |