From da3f6ffdbf59acd51a00b6bc7c8f0ec0b50f7528 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 16 Mar 2013 12:32:59 +0800 Subject: [PATCH] cmake add gcc compile options Signed-off-by: Andy Green --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 19df6ca5..0b46d308 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -301,6 +301,11 @@ if (UNIX) endif() endif(UNIX) + +if (UNIX) + set( CMAKE_C_FLAGS "-Wall -Werror -O4 " ) +endif (UNIX) + source_group("Headers Private" FILES ${HDR_PRIVATE}) source_group("Headers Public" FILES ${HDR_PUBLIC}) source_group("Sources" FILES ${SOURCES})