Skip to content

Commit

Permalink
Link with dl library in CMake builds if it is available
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin committed Dec 21, 2024
1 parent 9d452d1 commit 237de51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Generated by `boostdep --cmake dll`
# Copyright 2020 Peter Dimov
# Copyright Antony Polukhin, 2021-2024
#
# Distributed under the Boost Software License, Version 1.0.
# https://www.boost.org/LICENSE_1_0.txt

Expand All @@ -24,6 +25,7 @@ target_link_libraries(boost_dll
Boost::throw_exception
Boost::type_index
Boost::winapi
${CMAKE_DL_LIBS}
)

if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
Expand Down

0 comments on commit 237de51

Please sign in to comment.