OSX/cmake: fix warning: second try
authorJens Verwiebe <info@jensverwiebe.de>
Thu, 4 Oct 2012 11:26:02 +0000 (11:26 +0000)
committerJens Verwiebe <info@jensverwiebe.de>
Thu, 4 Oct 2012 11:26:02 +0000 (11:26 +0000)
CMakeLists.txt

index 313ea23..8370044 100644 (file)
@@ -1646,8 +1646,8 @@ elseif(APPLE)
 
        set(EXETYPE MACOSX_BUNDLE)
 
-       set(CMAKE_C_FLAGS_DEBUG "-O0 -fno-strict-aliasing -g")
-       set(CMAKE_CXX_FLAGS_DEBUG "-O0 -fno-strict-aliasing -g")
+       set(CMAKE_C_FLAGS_DEBUG "-O0 -fno-strict-aliasing -g" CACHE STRING "" FORCE)
+       set(CMAKE_CXX_FLAGS_DEBUG "-O0 -fno-strict-aliasing -g"CACHE STRING "" FORCE)
        if(CMAKE_OSX_ARCHITECTURES MATCHES "x86_64" OR CMAKE_OSX_ARCHITECTURES MATCHES "i386")
                set(CMAKE_CXX_FLAGS_RELEASE "-O2 -mdynamic-no-pic -msse -msse2 -msse3 -mssse3")
                set(CMAKE_C_FLAGS_RELEASE "-O2 -mdynamic-no-pic  -msse -msse2 -msse3 -mssse3")