Skip to content

Commit

Permalink
Merge pull request #9 from niansa/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis authored Sep 21, 2024
2 parents 702b9cb + 117b1dd commit c6af373
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,17 @@ else()
find_package(OpenSSL REQUIRED)
endif()

if(NOT CMAKE_SYSTEM_NAME STREQUAL Windows)
set(DL_LIBRARY dl)
endif()

target_include_directories(${BOT_NAME} PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
${OPENSSL_INCLUDE_DIR}
)

target_link_libraries(${BOT_NAME}
dl
${DL_LIBRARY}
${CMAKE_THREAD_LIBS_INIT}
${OPENSSL_CRYPTO_LIBRARY}
${OPENSSL_SSL_LIBRARY}
Expand Down

0 comments on commit c6af373

Please sign in to comment.