mirror of
https://github.com/boostorg/exception.git
synced 2025-07-29 12:07:20 +02:00
Make library STATIC, remove unnecessary compile definitions
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
# 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
|
||||
@ -7,7 +6,7 @@ cmake_minimum_required(VERSION 3.5...3.20)
|
||||
|
||||
project(boost_exception VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
|
||||
|
||||
add_library(boost_exception
|
||||
add_library(boost_exception STATIC
|
||||
src/clone_current_exception_non_intrusive.cpp
|
||||
)
|
||||
|
||||
@ -26,17 +25,6 @@ target_link_libraries(boost_exception
|
||||
Boost::type_traits
|
||||
)
|
||||
|
||||
target_compile_definitions(boost_exception
|
||||
PUBLIC BOOST_EXCEPTION_NO_LIB
|
||||
PRIVATE BOOST_EXCEPTION_SOURCE
|
||||
)
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
target_compile_definitions(boost_exception PUBLIC BOOST_EXCEPTION_DYN_LINK)
|
||||
else()
|
||||
target_compile_definitions(boost_exception PUBLIC BOOST_EXCEPTION_STATIC_LINK)
|
||||
endif()
|
||||
|
||||
if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
|
||||
|
||||
add_subdirectory(test)
|
||||
|
Reference in New Issue
Block a user