]> Some of my projects - openlase.git/commitdiff
Allow overriding CFLAGS
authorHector Martin <hector@marcansoft.com>
Sat, 12 Mar 2011 17:34:23 +0000 (18:34 +0100)
committerHector Martin <hector@marcansoft.com>
Sat, 12 Mar 2011 17:56:11 +0000 (18:56 +0100)
CMakeLists.txt

index 53d22e69a68a04b3cd091689c9a460fb5ee9ad26..8021333df808d033cc7c95395509550807cc2cb4 100644 (file)
@@ -31,7 +31,11 @@ find_package(GLUT)
 find_package(ALSA)
 find_package(Curses)
 
-set(CMAKE_C_FLAGS "-Wall -O3 -g")
+if(CMAKE_C_FLAGS STREQUAL "")
+  set(CMAKE_C_FLAGS "-O3 -g")
+endif()
+
+add_definitions(-Wall)
 
 add_subdirectory (libol)
 add_subdirectory (output)