Skip to content

Commit

Permalink
Fixup static Win32 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0219-msft committed Nov 5, 2017
1 parent b063472 commit a24b81a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Release/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ if(WIN32)
if (BUILD_SHARED_LIBS)
target_compile_definitions(cpprest PRIVATE -D_ASYNCRT_EXPORT -D_PPLX_EXPORT -D_USRDLL)
else()
target_compile_definitions(cpprest INTERFACE -D_NO_ASYNCRTIMP -D_NO_PPLXIMP)
target_compile_definitions(cpprest PUBLIC -D_NO_ASYNCRTIMP -D_NO_PPLXIMP)
endif()
elseif(ANDROID)
target_link_libraries(cpprest PRIVATE ${ANDROID_STL_FLAGS})
Expand Down
6 changes: 5 additions & 1 deletion Release/tests/functional/streams/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@ endif()
add_casablanca_test(streams_test SOURCES)
if(NOT WIN32 OR CPPREST_WEBSOCKETS_IMPL STREQUAL "wspp")
cpprest_find_boost()
target_link_libraries(streams_test PRIVATE cpprestsdk_boost_internal)
if(NOT TEST_LIBRARY_TARGET_TYPE STREQUAL "OBJECT")
target_link_libraries(streams_test PRIVATE cpprestsdk_boost_internal)
else()
target_include_directories(streams_test PRIVATE $<TARGET_PROPERTY:cpprestsdk_boost_internal,INTERFACE_INCLUDE_DIRECTORIES>)
endif()
endif()

0 comments on commit a24b81a

Please sign in to comment.