[Bf-blender-cvs] [96d88e56143] master: CMake: remove workaround for GCC 4.5 as 9.3.1 is the minimum version

Campbell Barton noreply at git.blender.org
Mon Sep 26 03:53:12 CEST 2022


Commit: 96d88e56143b1972d9b0cd6c53c6e0cda9b62269
Author: Campbell Barton
Date:   Mon Sep 26 11:51:12 2022 +1000
Branches: master
https://developer.blender.org/rB96d88e56143b1972d9b0cd6c53c6e0cda9b62269

CMake: remove workaround for GCC 4.5 as 9.3.1 is the minimum version

The -fpermissive flag is best avoided as it suppresses some important
warnings/errors.

===================================================================

M	source/blender/io/collada/CMakeLists.txt

===================================================================

diff --git a/source/blender/io/collada/CMakeLists.txt b/source/blender/io/collada/CMakeLists.txt
index 963a852a26a..43cc0642921 100644
--- a/source/blender/io/collada/CMakeLists.txt
+++ b/source/blender/io/collada/CMakeLists.txt
@@ -122,9 +122,4 @@ if(WITH_BUILDINFO)
   add_definitions(-DWITH_BUILDINFO)
 endif()
 
-if(CMAKE_COMPILER_IS_GNUCXX)
-  # COLLADAFWArray.h gives error with gcc 4.5
-  string(APPEND CMAKE_CXX_FLAGS " -fpermissive")
-endif()
-
 blender_add_lib(bf_collada "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")



More information about the Bf-blender-cvs mailing list