Skip to content

Commit

Permalink
Merge pull request #108 from arteniioleg/master
Browse files Browse the repository at this point in the history
fix `dl` link error
  • Loading branch information
JoeyDeVries committed Apr 24, 2018
2 parents 9e23557 + 3527145 commit cdceb36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ elseif(UNIX AND NOT APPLE)
# note that the order is important for setting the libs
# use pkg-config --libs $(pkg-config --print-requires --print-requires-private glfw3) in a terminal to confirm
set(LIBS ${GLFW3_LIBRARY} X11 Xrandr Xinerama Xi Xxf86vm Xcursor GL dl pthread ${ASSIMP_LIBRARY})
set (CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} -ldl")
elseif(APPLE)
INCLUDE_DIRECTORIES(/System/Library/Frameworks)
FIND_LIBRARY(COCOA_LIBRARY Cocoa)
Expand Down

0 comments on commit cdceb36

Please sign in to comment.