File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Copyright 2018, 2019, 2026 Peter Dimov
2+ # Distributed under the Boost Software License, Version 1.0.
3+ # See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
4+
5+ cmake_minimum_required (VERSION 3.5...3.31 )
6+
7+ project (cmake_subdir_test LANGUAGES CXX )
8+
9+ add_subdirectory (../.. boostorg/circular_buffer )
10+ add_subdirectory (../../../config boostorg/config )
11+
12+ add_executable (main main.cpp )
13+ target_link_libraries (main Boost::circular_buffer )
14+
15+ enable_testing ()
16+ add_test (main main )
17+
18+ add_custom_target (check VERBATIM COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG >)
Original file line number Diff line number Diff line change 1+ // Copyright 2026 Peter Dimov
2+ // Distributed under the Boost Software License, Version 1.0.
3+ // http://www.boost.org/LICENSE_1_0.txt
4+
5+ #include < boost/circular_buffer.hpp>
6+
7+ int main ()
8+ {
9+ boost::circular_buffer<int > cb;
10+ return cb.empty ()? 0 : 1 ;
11+ }
You can’t perform that action at this time.
0 commit comments