File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ if(WIN32)
192192 if (BUILD_SHARED_LIBS )
193193 target_compile_definitions (cpprest PRIVATE -D_ASYNCRT_EXPORT -D_PPLX_EXPORT -D_USRDLL)
194194 else ()
195- target_compile_definitions (cpprest INTERFACE -D_NO_ASYNCRTIMP -D_NO_PPLXIMP)
195+ target_compile_definitions (cpprest PUBLIC -D_NO_ASYNCRTIMP -D_NO_PPLXIMP)
196196 endif ()
197197elseif (ANDROID)
198198 target_link_libraries (cpprest PRIVATE ${ANDROID_STL_FLAGS} )
Original file line number Diff line number Diff line change @@ -18,5 +18,9 @@ endif()
1818add_casablanca_test(streams_test SOURCES )
1919if (NOT WIN32 OR CPPREST_WEBSOCKETS_IMPL STREQUAL "wspp" )
2020 cpprest_find_boost()
21- target_link_libraries (streams_test PRIVATE cpprestsdk_boost_internal)
21+ if (NOT TEST_LIBRARY_TARGET_TYPE STREQUAL "OBJECT" )
22+ target_link_libraries (streams_test PRIVATE cpprestsdk_boost_internal)
23+ else ()
24+ target_include_directories (streams_test PRIVATE $<TARGET_PROPERTY:cpprestsdk_boost_internal,INTERFACE_INCLUDE_DIRECTORIES >)
25+ endif ()
2226endif ()
You can’t perform that action at this time.
0 commit comments