mirror of
https://github.com/pocoproject/poco.git
synced 2025-12-11 02:25:59 +01:00
fix: OpenSSL: Need to add openssl/applink.c to Windows executables using OpenSSL #4864
This commit is contained in:
@@ -1,2 +1,5 @@
|
||||
add_executable(HTTPSTimeServer src/HTTPSTimeServer.cpp)
|
||||
target_link_libraries(HTTPSTimeServer PUBLIC Poco::NetSSL Poco::Util Poco::XML)
|
||||
if(MSVC)
|
||||
target_link_libraries(HTTPSTimeServer PRIVATE OpenSSL::applink)
|
||||
endif()
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
add_executable(Mail-ssl src/Mail.cpp)
|
||||
target_link_libraries(Mail-ssl PUBLIC Poco::NetSSL Poco::Util Poco::XML)
|
||||
if(MSVC)
|
||||
target_link_libraries(Mail-ssl PRIVATE OpenSSL::applink)
|
||||
endif()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
add_executable(SetSourceIP src/SetSourceIP.cpp)
|
||||
target_link_libraries(SetSourceIP PUBLIC Poco::NetSSL Poco::Crypto Poco::Util Poco::Net Poco::XML Poco::Foundation)
|
||||
# uncomment following line, might solve compiling issues
|
||||
#set(CMAKE_CXX_STANDARD 11)
|
||||
|
||||
if(MSVC)
|
||||
target_link_libraries(SetSourceIP PRIVATE OpenSSL::applink)
|
||||
endif()
|
||||
|
||||
@@ -3,3 +3,6 @@ add_executable(TwitterCLient
|
||||
src/Twitter.cpp
|
||||
)
|
||||
target_link_libraries(TwitterCLient PUBLIC Poco::NetSSL Poco::Util Poco::JSON Poco::XML)
|
||||
if(MSVC)
|
||||
target_link_libraries(TwitterClient PRIVATE OpenSSL::applink)
|
||||
endif()
|
||||
@@ -1,2 +1,5 @@
|
||||
add_executable(download-ssl src/download.cpp)
|
||||
target_link_libraries(download-ssl PUBLIC Poco::NetSSL Poco::Util Poco::XML)
|
||||
if(MSVC)
|
||||
target_link_libraries(download-ssl PRIVATE OpenSSL::applink)
|
||||
endif()
|
||||
@@ -35,7 +35,9 @@ else()
|
||||
)
|
||||
endif()
|
||||
target_link_libraries(NetSSL-testrunner PUBLIC Poco::NetSSL Poco::Util Poco::XML CppUnit)
|
||||
|
||||
if(MSVC)
|
||||
target_link_libraries(NetSSL-testrunner PRIVATE OpenSSL::applink)
|
||||
endif()
|
||||
|
||||
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/ping/websocket-server.cpp)
|
||||
add_executable(NetSSL-server ping/websocket-server.cpp)
|
||||
|
||||
Reference in New Issue
Block a user