Skip to content
Snippets Groups Projects

add gcc version check for -Wno-error=class-memaccess compile option

Merged Patric Schmitz requested to merge class-memaccess_gcc8 into develop
1 file
+ 6
3
Compare changes
  • Side-by-side
  • Inline
+ 6
3
@@ -198,9 +198,12 @@ if(GLOW_USE_OWN_GLM)
@@ -198,9 +198,12 @@ if(GLOW_USE_OWN_GLM)
GLM_FORCE_CTOR_INIT # 0.9.9 breaks a lot otherwise
GLM_FORCE_CTOR_INIT # 0.9.9 breaks a lot otherwise
)
)
if (GCC)
if (GCC)
target_compile_options(glm INTERFACE
# class-memaccess error not available before gcc 8
-Wno-error=class-memaccess # new-ish warning that triggers a lot in glm
if(NOT ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 8)
)
target_compile_options(glm INTERFACE
 
-Wno-error=class-memaccess # new-ish warning that triggers a lot in glm
 
)
 
endif()
endif()
endif()
target_link_libraries(glow PUBLIC glm)
target_link_libraries(glow PUBLIC glm)
endif()
endif()
Loading