Skip to content

Commit

Permalink
More portable libdl handling
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Apr 9, 2015
1 parent eab0b1e commit 093ad29
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions CMakeLists.txt
Expand Up @@ -105,13 +105,10 @@ if(NOT WIN32)
if(HAVE_RT_LIB)
set(SYSTEM_LIBS ${SYSTEM_LIBS} rt)
endif()

CHECK_LIBRARY_EXISTS(dl dlopen "" HAVE_DL_LIB)
if(HAVE_DL_LIB)
set(SYSTEM_LIBS ${SYSTEM_LIBS} dl)
endif()
endif()

set(SYSTEM_LIBS ${SYSTEM_LIBS} ${CMAKE_DL_LIBS})

set(FFmpeg_FIND_COMPONENTS AVFORMAT SWSCALE)
find_package(Boost 1.48.0 COMPONENTS filesystem locale program_options system thread REQUIRED)
find_package(ZLIB REQUIRED)
Expand Down

0 comments on commit 093ad29

Please sign in to comment.