From 399208b68272e87509f0dfd113bd00d5bae8d492 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 31 May 2024 04:48:39 +0300 Subject: [PATCH] Make the library header-only in CMakeLists.txt --- CMakeLists.txt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2559b0a..d13ff07 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,4 @@ +# Generated by `boostdep --cmake exception` # Copyright 2020, 2021 Peter Dimov # Distributed under the Boost Software License, Version 1.0. # 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) -add_library(boost_exception STATIC - src/clone_current_exception_non_intrusive.cpp -) - +add_library(boost_exception INTERFACE) 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 - PUBLIC + INTERFACE Boost::assert Boost::config Boost::core