Skip to content

Commit b137322

Browse files
committed
Install boost_static_assert in CMakeLists.txt
1 parent 794a106 commit b137322

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

CMakeLists.txt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Copyright 2018 Mike Dev
2-
# Copyright 2019 Peter Dimov
2+
# Copyright 2019, 2025 Peter Dimov
33
# 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
4+
# https://www.boost.org/LICENSE_1_0.txt
55

6-
# We support CMake 3.5, but prefer 3.16 policies and behavior
7-
cmake_minimum_required(VERSION 3.5...3.16)
6+
# We support CMake 3.5, but prefer 3.31 policies and behavior
7+
cmake_minimum_required(VERSION 3.5...3.31)
88

99
project(boost_static_assert VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
1010

@@ -16,6 +16,14 @@ target_link_libraries(boost_static_assert
1616
Boost::config
1717
)
1818

19+
# Automatic installation doesn't trigger because we have no include directory
20+
21+
if(BOOST_SUPERPROJECT_VERSION AND NOT CMAKE_VERSION VERSION_LESS 3.13)
22+
23+
boost_install(TARGETS boost_static_assert VERSION ${BOOST_SUPERPROJECT_VERSION})
24+
25+
endif()
26+
1927
# BUILD_TESTING is the standard CTest variable that enables testing
2028

2129
if(BUILD_TESTING)

0 commit comments

Comments
 (0)