[CMakeLists.txt] Small fix.

This commit is contained in:
Quentin Bazin 2020-01-22 22:25:50 +09:00
parent 2217544a3f
commit 19ff91c0c0

View File

@ -48,6 +48,10 @@ set(CMAKE_CXX_STANDARD 14)
#------------------------------------------------------------------------------
# Link options
#------------------------------------------------------------------------------
if (UNIX)
set (UNIX_LIBS -ldl)
endif ()
target_link_libraries(${CMAKE_PROJECT_NAME}
${OPENGL_LIBRARIES}
${SDL2_LIBRARIES}
@ -59,6 +63,7 @@ target_link_libraries(${CMAKE_PROJECT_NAME}
${GAMEKIT_LIBRARIES}
${LUA_LIBRARIES}
sfml-system
sfml-network -ldl
sfml-network
${UNIX_LIBS}
${CMAKE_PROJECT_NAME}_common)