Skip to content

Commit c6af373

Browse files
Merge pull request #9 from niansa/patch-1
2 parents 702b9cb + 117b1dd commit c6af373

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,17 @@ else()
3030
find_package(OpenSSL REQUIRED)
3131
endif()
3232

33+
if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
34+
set(DL_LIBRARY dl)
35+
endif()
36+
3337
target_include_directories(${BOT_NAME} PUBLIC
3438
${CMAKE_CURRENT_SOURCE_DIR}/include
3539
${OPENSSL_INCLUDE_DIR}
3640
)
3741

3842
target_link_libraries(${BOT_NAME}
39-
dl
43+
${DL_LIBRARY}
4044
${CMAKE_THREAD_LIBS_INIT}
4145
${OPENSSL_CRYPTO_LIBRARY}
4246
${OPENSSL_SSL_LIBRARY}

0 commit comments

Comments
 (0)