Cleaned up GCC compiler flags in CMakeLists.txt.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 24 Oct 2009 03:22:14 -0400
changeset 103 7528b40af909
parent 102 f59e3ae223b1
child 104 3be906860130
Cleaned up GCC compiler flags in CMakeLists.txt.
CMakeLists.txt
--- a/CMakeLists.txt	Sat Oct 24 03:16:31 2009 -0400
+++ b/CMakeLists.txt	Sat Oct 24 03:22:14 2009 -0400
@@ -10,11 +10,14 @@
     OUTPUT_STRIP_TRAILING_WHITESPACE
 )
 
+IF(CMAKE_COMPILER_IS_GNUCC)
+    ADD_DEFINITIONS(-pipe -fsigned-char -Wall -Werror)
+ENDIF(CMAKE_COMPILER_IS_GNUCC)
+
 ADD_DEFINITIONS(-DAPPID=fatelf)
 ADD_DEFINITIONS(-DAPPREV="${FATELF_VERSION}")
 
 INCLUDE_DIRECTORIES(include)
-ADD_DEFINITIONS(-Wall -Werror)
 
 ADD_LIBRARY(fatelf-utils STATIC utils/fatelf-utils.c)