Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: fix target_link_libraries for win32 #238

Merged
merged 1 commit into from
Feb 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -429,19 +429,18 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
PRIVATE "-framework SystemConfiguration" "-framework CoreFoundation"
)
endif()
target_link_libraries(re-shared
PRIVATE -L/opt/local/lib ${OPENSSL_LIBRARIES} -lpthread)


if(WIN32)
target_link_libraries(re-shared
libssl
libcrypto
target_link_libraries(re-shared PRIVATE
${OPENSSL_LIBRARIES}
qwave
iphlpapi
wsock32
ws2_32
)
else()
target_link_libraries(re-shared
PRIVATE -L/opt/local/lib ${OPENSSL_LIBRARIES} -lpthread)
endif()

set_target_properties(re-shared PROPERTIES PUBLIC_HEADER include/re.h)
Expand Down