From 70b3edd06f0ec8f78cbb230c0824e21c688eef38 Mon Sep 17 00:00:00 2001 From: Simon Richter Date: Thu, 23 Feb 2017 18:00:16 +0100 Subject: [PATCH] Drop unnecessary and possibly harmful optimization setting Using -O3 is default for release builds with gcc/clang anyway, so this doesn't gain anything, but overwriting the existing flags might remove some that might be needed. --- 3d-viewer/CMakeLists.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/3d-viewer/CMakeLists.txt b/3d-viewer/CMakeLists.txt index 096c437b46..558564e4ec 100644 --- a/3d-viewer/CMakeLists.txt +++ b/3d-viewer/CMakeLists.txt @@ -1,9 +1,6 @@ #add_definitions(-DPRINT_STATISTICS_3D_VIEWER) add_definitions(-DPCBNEW) -set( CMAKE_C_FLAGS_RELEASE "-O3" ) -set( CMAKE_CXX_FLAGS_RELEASE "-O3" ) - include_directories(BEFORE ${INC_BEFORE}) include_directories( ../pcbnew