Make the library header-only in CMakeLists.txt

This commit is contained in:
Peter Dimov
2024-05-31 04:48:39 +03:00
parent b9170a02f1
commit 399208b682

View File

@ -1,3 +1,4 @@
# Generated by `boostdep --cmake exception`
# Copyright 2020, 2021 Peter Dimov # Copyright 2020, 2021 Peter Dimov
# Distributed under the Boost Software License, Version 1.0. # Distributed under the Boost Software License, Version 1.0.
# https://www.boost.org/LICENSE_1_0.txt # https://www.boost.org/LICENSE_1_0.txt
@ -6,16 +7,13 @@ cmake_minimum_required(VERSION 3.5...3.20)
project(boost_exception VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX) project(boost_exception VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
add_library(boost_exception STATIC add_library(boost_exception INTERFACE)
src/clone_current_exception_non_intrusive.cpp
)
add_library(Boost::exception ALIAS boost_exception) add_library(Boost::exception ALIAS boost_exception)
target_include_directories(boost_exception PUBLIC include) target_include_directories(boost_exception INTERFACE include)
target_link_libraries(boost_exception target_link_libraries(boost_exception
PUBLIC INTERFACE
Boost::assert Boost::assert
Boost::config Boost::config
Boost::core Boost::core