Skip to content

Commit 0578f28

Browse files
committed
use super-project for cmake subdir test
1 parent 3e0ecf4 commit 0578f28

1 file changed

Lines changed: 2 additions & 20 deletions

File tree

test/cmake_test/CMakeLists.txt

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,8 @@ if(BOOST_CI_INSTALL_TEST)
1616
find_package(Boost CONFIG REQUIRED COMPONENTS buffers)
1717
else()
1818
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
19-
add_subdirectory(../.. boostorg/buffers)
20-
21-
set(deps
22-
# Primary dependencies
23-
24-
assert
25-
capy
26-
config
27-
core
28-
system
29-
throw_exception
30-
31-
# Secondary dependencies
32-
33-
compat
34-
)
35-
36-
foreach(dep IN LISTS deps)
37-
add_subdirectory(../../../${dep} boostorg/${dep} EXCLUDE_FROM_ALL)
38-
endforeach()
19+
set(BOOST_INCLUDE_LIBRARIES buffers)
20+
add_subdirectory(../../../.. boostorg/boost)
3921
endif()
4022

4123
add_executable(main main.cpp)

0 commit comments

Comments
 (0)