7
deps/glad/CMakeLists.txt
vendored
7
deps/glad/CMakeLists.txt
vendored
@@ -43,8 +43,13 @@ endif()
|
||||
|
||||
if(NOT WIN32 AND NOT APPLE)
|
||||
set(glad_PLATFORM_DEPS
|
||||
-ldl
|
||||
${X11_X11_LIB})
|
||||
# only link to libdl on linux
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
set(glad_PLATFORM_DEPS
|
||||
${glad_PLATFORM_DEPS}
|
||||
-ldl)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
target_link_libraries(glad
|
||||
|
2
deps/jansson/CMakeLists.txt
vendored
2
deps/jansson/CMakeLists.txt
vendored
@@ -95,7 +95,7 @@ if (MSVC)
|
||||
|
||||
endif()
|
||||
|
||||
if (NOT WIN32 AND (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX))
|
||||
if (NOT WIN32 AND NOT APPLE)
|
||||
set(CMAKE_C_FLAGS "-fPIC")
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user