From: Hector Martin Date: Sat, 12 Mar 2011 17:34:23 +0000 (+0100) Subject: Allow overriding CFLAGS X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=8cac161d8591ebfd128fc8248e0518c279f315f5;p=openlase.git Allow overriding CFLAGS --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 53d22e6..8021333 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)