Skip to content

Commit 9dc1a35

Browse files
committed
use super-project for cmake subdir test
1 parent 9a6d3ab commit 9dc1a35

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

test/cmake_test/CMakeLists.txt

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

4423
add_executable(main main.cpp)

0 commit comments

Comments
 (0)