File tree Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -14,16 +14,16 @@ set(Uri_SRCS
14
14
${CMAKE_CURRENT_SOURCE_DIR} /detail/uri_resolve.cpp
15
15
)
16
16
if (NOT CPP-NETLIB_BUILD_SINGLE_LIB )
17
- add_library (cppnetlib -uri ${Uri_SRCS} )
18
- target_link_libraries (cppnetlib -uri ${Boost_LIBRARIES} )
17
+ add_library (network -uri ${Uri_SRCS} )
18
+ target_link_libraries (network -uri ${Boost_LIBRARIES} )
19
19
if (${CMAKE_CXX_COMPILER_ID} MATCHES Clang )
20
20
if (NOT CPP-NETLIB_DISABLE_LIBCXX )
21
- target_link_libraries (cppnetlib -uri "c++" )
21
+ target_link_libraries (network -uri "c++" )
22
22
endif ()
23
23
endif ()
24
24
install (
25
25
TARGETS
26
- cppnetlib -uri
26
+ network -uri
27
27
DESTINATION ${CMAKE_INSTALL_PREFIX} /lib
28
28
)
29
29
Original file line number Diff line number Diff line change 17
17
uri_builder_test
18
18
uri_stream_test
19
19
)
20
- if (CPP-NETLIB_BUILD_SINGLE_LIB )
21
- set (link_cppnetlib_lib cppnetlib )
22
- set (dependencies cppnetlib )
23
- else ()
24
- set (link_cppnetlib_lib cppnetlib-uri )
25
- set (dependencies cppnetlib-uri )
26
- endif ()
20
+
27
21
foreach (test ${TESTS} )
28
22
add_executable (${test} ${test} .cpp )
29
- add_dependencies (${test} ${dependencies} )
30
- target_link_libraries (${test} ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${link_cppnetlib_lib} )
23
+ add_dependencies (${test} network-uri )
24
+ target_link_libraries (${test} ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} network-uri )
31
25
if (OPENSSL_FOUND )
32
26
target_link_libraries (${test} ${OPENSSL_LIBRARIES} )
33
27
endif ()
You can’t perform that action at this time.
0 commit comments