why didn't i commit this before?
This commit is contained in:
parent
dacfaf22c7
commit
1a0b3be6dd
@ -42,6 +42,7 @@ elseif(UNIX)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
#set dependencies paths
|
||||
set(DEPENDENCIES_ROOT ${PROJECT_SOURCE_DIR}/../cpp_dependencies)
|
||||
set(INCLUDE_ROOT ${DEPENDENCIES_ROOT}/include)
|
||||
@ -173,7 +174,7 @@ if(SFML_MODULES)
|
||||
if(WIN32)
|
||||
LIST(APPEND LIB_SFML_LIST ${SFML_LIBRARY_WINDOW} gdi32)
|
||||
elseif(UNIX)
|
||||
LIST(APPEND LIB_SFML_LIST ${SFML_LIBRARY_WINDOW} dl)
|
||||
LIST(APPEND LIB_SFML_LIST ${SFML_LIBRARY_WINDOW})
|
||||
endif()
|
||||
MESSAGE(STATUS "using SFML window")
|
||||
endif()
|
||||
@ -350,8 +351,12 @@ if(USE_RENDERER)
|
||||
set(USE_OPENGL True)
|
||||
|
||||
LIST(APPEND INCLUDE_PATHS ${PROJECT_SOURCE_DIR}/../SparrowRenderer/src)
|
||||
if(UNIX)
|
||||
LIST(APPEND LIB_DEPENDENCIES_LIST ${SPARROW_RENDERER_LIBRARY} dl)
|
||||
else()
|
||||
LIST(APPEND LIB_DEPENDENCIES_LIST ${SPARROW_RENDERER_LIBRARY})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(USE_OPENGL)
|
||||
find_package(OpenGL REQUIRED)
|
||||
@ -366,7 +371,6 @@ include_directories(
|
||||
)
|
||||
|
||||
if(LIB_SRC_LIST)
|
||||
# please do not add -ldl here for all systems without any explanation
|
||||
target_link_libraries(
|
||||
${LIBRARY_NAME}
|
||||
${LIB_DEPENDENCIES_LIST}
|
||||
|
Loading…
x
Reference in New Issue
Block a user