Skip to content

Commit

Permalink
Make the library header-only in CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed May 31, 2024
1 parent b9170a0 commit 399208b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 399208b

Please sign in to comment.