From 3c7d6f8fd9f7678762ac34843b2b5831ba4fc8a9 Mon Sep 17 00:00:00 2001 From: theraven Date: Fri, 14 Dec 2012 09:40:39 +0000 Subject: [PATCH] Fix merging CFLAGS. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ee7d55..9708306 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,9 +3,9 @@ cmake_minimum_required(VERSION 2.8) project(libobjc) -list(INSERT CMAKE_C_FLAGS_DEBUG 0 "-g -O0 -fno-inline") -list(INSERT CMAKE_C_FLAGS_RELEASE 0 "-O3") -list(APPEND CMAKE_C_FLAGS "-std=gnu99") +set(CMAKE_C_FLAGS_DEBUG "-g -O0 -fno-inline ${CMAKE_C_FLAGS_DEBUG}") +set(CMAKE_C_FLAGS_RELEASE "-O3 ${CMAKE_C_FLAGS_RELEASE}") +set(CMAKE_C_FLAGS "-std=gnu99 ${CMAKE_C_FLAGS}") set(libobjc_VERSION 4.6)