Update CMakeLists.txt

This commit is contained in:
Peter Dimov
2023-10-29 01:49:36 +03:00
committed by GitHub
parent e508ed842c
commit 4ac6dd38a3

View File

@ -4,10 +4,6 @@
# See accompanying file LICENSE_1_0.txt or copy at # See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt # http://www.boost.org/LICENSE_1_0.txt
# NOTE:
# CMake support for Boost.Predef is currently experimental at best and the
# interface is likely to change in the future
#
# This file provides minimal cmake support (no unit-tests, # This file provides minimal cmake support (no unit-tests,
# no installation) for integration into a "host" cmake project # no installation) for integration into a "host" cmake project
# via the "add_subdirectory( <path-to-boost-predef> )" command. # via the "add_subdirectory( <path-to-boost-predef> )" command.
@ -20,12 +16,12 @@
# Only need the basic minimum of project, add_library, and # Only need the basic minimum of project, add_library, and
# target_include_directories commands. # target_include_directories commands.
cmake_minimum_required( VERSION 3.0 ) cmake_minimum_required( VERSION 3.5 )
# Don't set VERSION, as that's a pita to keep up to date with the version # VERSION is set to the Boost superproject version if present,
# header. And don't set LANGUAGES as we are multi-language and header # otherwise none. LANGUAGES are set to NONE as we are multi-language
# only, so it's irrelevant. # and preprocessor-only.
project( BoostPredef LANGUAGES NONE ) project( boost_predef VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES NONE )
# Simple INTERFACE, and header only, library target. # Simple INTERFACE, and header only, library target.
add_library( boost_predef INTERFACE ) add_library( boost_predef INTERFACE )