MinGW fixes and warnings

This commit is contained in:
Thomas Krijnen
2016-06-05 14:03:03 +02:00
parent 009870135f
commit 815ed07192
3 changed files with 39 additions and 25 deletions
+6 -1
View File
@@ -316,7 +316,12 @@ IF(MSVC)
ENDIF()
ENDFOREACH()
ElSE()
ADD_DEFINITIONS(-fPIC -Wno-non-virtual-dtor)
IF(WIN32)
# -fPIC is not relevant on Windows and create pointless warnings
ADD_DEFINITIONS(-Wno-non-virtual-dtor)
ELSE()
ADD_DEFINITIONS(-fPIC -Wno-non-virtual-dtor)
ENDIF()
ENDIF()
INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES} ${OCC_INCLUDE_DIR} ${OPENCOLLADA_INCLUDE_DIRS}