deps-glad: don't build with -fPIC on windows
-fPIC generates unwanted warnings in mingw on windows.
This commit is contained in:
parent
e13a19207f
commit
119c06198a
5
deps/glad/CMakeLists.txt
vendored
5
deps/glad/CMakeLists.txt
vendored
@ -35,7 +35,10 @@ target_compile_definitions(glad
|
||||
|
||||
if(NOT MSVC)
|
||||
target_compile_options(glad
|
||||
PRIVATE -DPIC -fPIC -fvisibility=hidden)
|
||||
PRIVATE -DPIC -fvisibility=hidden)
|
||||
if(NOT MINGW)
|
||||
target_compile_options(glad PRIVATE -fPIC)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT WIN32 AND NOT APPLE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user