deps-glad: don't build with -fPIC on windows

-fPIC generates unwanted warnings in mingw on windows.
This commit is contained in:
martell 2015-02-05 03:04:37 +00:00 committed by jp9000
parent e13a19207f
commit 119c06198a

View File

@ -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)