We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d38358 commit e39cbe6Copy full SHA for e39cbe6
CMakeLists.txt
@@ -178,7 +178,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
178
INTERFACE NOMINMAX # avoid Win macro definition of min/max, use std one
179
INTERFACE _SCL_SECURE_NO_WARNINGS) # disable security-paranoia warning
180
endif()
181
- target_link_libraries(${PROJECT_NAME} Ws2_32 ${OPENSSL_CRYPTO_LIBRARY} ${OPENSSL_SSL_LIBRARY} crypt32 cryptui)
+ target_link_libraries(${PROJECT_NAME} PUBLIC ${OPENSSL_CRYPTO_LIBRARY} ${OPENSSL_SSL_LIBRARY} PRIVATE Ws2_32 crypt32 cryptui)
182
else()
183
#For other compiler create the library as a static library
184
add_library(${PROJECT_NAME}
0 commit comments