diff --git a/CMakeLists.txt b/CMakeLists.txt index bf5e3ff..2665c17 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,10 +24,10 @@ set(SRCS # Define the C flags. set(CMAKE_C_FLAGS "-std=gnu99 -Wall -Wextra -Werror -Wfatal-errors -Wmissing-declarations -pedantic-errors") -set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -g -O0") -set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -O3") -set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS} -g -O3") -set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS} -Os") +set(CMAKE_C_FLAGS_DEBUG "-g -O0") +set(CMAKE_C_FLAGS_RELEASE "-O3") +set(CMAKE_C_FLAGS_RELWITHDEBINFO "-g -O3") +set(CMAKE_C_FLAGS_MINSIZEREL "-Os") if(NOT CMAKE_BUILD_TYPE MATCHES Debug AND NOT CMAKE_BUILD_TYPE MATCHES RelWithDebInfo) add_definitions(-DNDEBUG)