Skip to content

Commit

Permalink
conannnn
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Oct 23, 2024
1 parent b304bd7 commit 311b742
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ foreach (fullmodname ${subdirlist})
)
endif()

if (WIN32 AND NOT MINGW)
if (WIN32 AND NOT MINGW AND NOT CONAN_EXPORTED)

if (NOT WINDOWS_32_BIT)
target_link_libraries(${modname} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../win32/lib/libssl.lib"
Expand All @@ -295,7 +295,11 @@ foreach (fullmodname ${subdirlist})
endif()

else()
target_link_libraries(${modname} PUBLIC ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY} ${ZLIB_LIBRARIES})
if (CONAN_EXPORTED)
target_link_libraries(${modname} PUBLIC nlohmann_json::nlohmann_json openssl::openssl ZLIB::ZLIB Opus::opus)
else()
target_link_libraries(${modname} PUBLIC ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY} ${ZLIB_LIBRARIES})
endif()
if (MINGW)
target_link_libraries(${modname} PUBLIC wsock32 ws2_32 crypt32)
endif ()
Expand Down

0 comments on commit 311b742

Please sign in to comment.