Skip to content

Commit

Permalink
Added CMake target compile feature cxx_static_assert.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lastique committed Oct 1, 2023
1 parent a01d1f6 commit 65c51f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2018 Mike Dev
# Copyright 2019 Peter Dimov
# Copyright 2020-2022 Andrey Semashev
# Copyright 2020-2023 Andrey Semashev
# Distributed under the Boost Software License, Version 1.0.
# See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt

Expand Down Expand Up @@ -86,6 +86,10 @@ endif()
add_library(boost_atomic ${boost_atomic_sources})
add_library(Boost::atomic ALIAS boost_atomic)

target_compile_features(boost_atomic PUBLIC
cxx_static_assert
)

target_include_directories(boost_atomic PUBLIC include)
target_include_directories(boost_atomic PRIVATE src)

Expand Down

0 comments on commit 65c51f5

Please sign in to comment.