From 0f7598e3269f9e5202ebab7a02db7259c8a16104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 14 Feb 2023 20:51:33 +0100 Subject: [PATCH] CMake: Corrade now sets -fno-strict-aliasing on its own. I'm 10 years late with this change, should have done that instead of f373b6518e0b1fa3e4d0ffb19f77e80a8a56484c back then already. --- src/CMakeLists.txt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8294ec495..57b54800e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -23,14 +23,6 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. # - -# On 4.8.2 strict aliasing causes failure of DebugToolsCylinderRendererTest -# without any warning, only in release build, any attempt to add debug print -# results in issue disappearing. Not an issue on Clang or GCC < 4.8. -if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.8.0") - add_compile_options("-fno-strict-aliasing") -endif() - # On MSVC remove /W3, as we are replacing it with /W4. Could be removed as of # 3.15 with this: https://cmake.org/cmake/help/latest/policy/CMP0092.html if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" OR CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC")