Skip to content

Commit 093ad29

Browse files
committed
More portable libdl handling
1 parent eab0b1e commit 093ad29

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎CMakeLists.txt‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,10 @@ if(NOT WIN32)
105105
if(HAVE_RT_LIB)
106106
set(SYSTEM_LIBS ${SYSTEM_LIBS} rt)
107107
endif()
108-
109-
CHECK_LIBRARY_EXISTS(dl dlopen "" HAVE_DL_LIB)
110-
if(HAVE_DL_LIB)
111-
set(SYSTEM_LIBS ${SYSTEM_LIBS} dl)
112-
endif()
113108
endif()
114109

110+
set(SYSTEM_LIBS ${SYSTEM_LIBS} ${CMAKE_DL_LIBS})
111+
115112
set(FFmpeg_FIND_COMPONENTS AVFORMAT SWSCALE)
116113
find_package(Boost 1.48.0 COMPONENTS filesystem locale program_options system thread REQUIRED)
117114
find_package(ZLIB REQUIRED)

0 commit comments

Comments
 (0)