Replaced libdl library path with the standard CMAKE_DL_LIBS.

This commit is contained in:
Yuri
2017-11-19 14:32:57 -08:00
parent 3eb68d2170
commit cb2a38df56
2 changed files with 2 additions and 3 deletions

View File

@ -234,7 +234,7 @@ SET(projectM_LIBRARIES_TO_LINK
${COREFOUNDATION_LIBRARIES}
${OPENGL_LIBRARIES}
${OPENGLES_LIBRARIES}
dl
${CMAKE_DL_LIBS}
)
TARGET_LINK_LIBRARIES(projectM ${projectM_LIBRARIES_TO_LINK})

View File

@ -5,7 +5,6 @@ SET(NativePresetFactory_SOURCES NativePresetFactory.cpp)
IF(NOT MSVC)
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
ENDIF(NOT MSVC)
find_library(DL_LIBRARIES dl)
if(MSVC)
SET (MATH_LIBRARIES )
@ -15,4 +14,4 @@ endif(MSVC)
INCLUDE_DIRECTORIES(${projectM_SOURCE_DIR} ${Renderer_SOURCE_DIR})
ADD_LIBRARY(NativePresetFactory STATIC ${NativePresetFactory_SOURCES})
TARGET_LINK_LIBRARIES(NativePresetFactory Renderer ${MATH_LIBRARIES} ${DL_LIBRARIES})
TARGET_LINK_LIBRARIES(NativePresetFactory Renderer ${MATH_LIBRARIES} ${CMAKE_DL_LIBS})