]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/atomic/CMakeLists.txt
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / atomic / CMakeLists.txt
1 # Copyright 2018 Mike Dev
2 # Distributed under the Boost Software License, Version 1.0.
3 # See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
4
5 cmake_minimum_required(VERSION 3.5)
6 project(BoostAtomic LANGUAGES CXX)
7
8 add_library(boost_atomic src/lockpool.cpp)
9 add_library(Boost::atomic ALIAS boost_atomic)
10
11 target_include_directories(boost_atomic PUBLIC include)
12
13 target_link_libraries(boost_atomic
14 PUBLIC
15 Boost::assert
16 Boost::config
17 Boost::type_traits
18 )
19
20 target_compile_definitions(boost_atomic PRIVATE BOOST_ATOMIC_SOURCE)
21
22 if(${BUILD_SHARED_LIBS})
23 target_compile_definitions(boost_atomic PUBLIC BOOST_ATOMIC_DYN_LINK)
24 else()
25 target_compile_definitions(boost_atomic PUBLIC BOOST_ATOMIC_STATIC_LINK)
26 endif()