Merge pull request #21 from yurivict/dl-patch

Replaced libdl library path with the standard CMAKE_DL_LIBS.
This commit is contained in:
Mischa Spiegelmock
2017-11-20 11:19:25 +11:00
committed by GitHub
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})