aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules/DefineCompilerFlags.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Modules/DefineCompilerFlags.cmake')
-rw-r--r--cmake/Modules/DefineCompilerFlags.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/Modules/DefineCompilerFlags.cmake b/cmake/Modules/DefineCompilerFlags.cmake
new file mode 100644
index 000000000000..9e262b94bc4b
--- /dev/null
+++ b/cmake/Modules/DefineCompilerFlags.cmake
@@ -0,0 +1,6 @@
+# Define compiler flags
+
+if( CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX )
+ #ADD_DEFINITIONS( -Wall -W -Werror -pedantic )
+ ADD_DEFINITIONS( -std=c99 -Wall -Wextra -W -pedantic -Wno-unused-parameter )
+endif( CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX )