Skip to content

Commit dbb20c1

Browse files
committed
use super-project for cmake subdir test
1 parent 3309e07 commit dbb20c1

File tree

1 file changed

+2
-34
lines changed

1 file changed

+2
-34
lines changed

test/cmake_test/CMakeLists.txt

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -16,40 +16,8 @@ if(BOOST_CI_INSTALL_TEST)
1616
find_package(Boost CONFIG REQUIRED COMPONENTS http_proto)
1717
else()
1818
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
19-
add_subdirectory(../.. boostorg/http_proto)
20-
21-
set(BOOST_URL_BUILD_TESTS OFF CACHE BOOL "" FORCE)
22-
23-
set(deps
24-
# Primary dependencies
25-
26-
assert
27-
buffers
28-
capy
29-
config
30-
core
31-
static_assert
32-
system
33-
throw_exception
34-
type_traits
35-
url
36-
winapi
37-
38-
# Secondary dependencies
39-
40-
compat
41-
container_hash
42-
mp11
43-
variant2
44-
align
45-
optional
46-
predef
47-
describe
48-
)
49-
50-
foreach(dep IN LISTS deps)
51-
add_subdirectory(../../../${dep} boostorg/${dep} EXCLUDE_FROM_ALL)
52-
endforeach()
19+
set(BOOST_INCLUDE_LIBRARIES http_proto)
20+
add_subdirectory(../../../.. boostorg/boost)
5321
endif()
5422

5523
add_executable(main main.cpp)

0 commit comments

Comments
 (0)