build: remove ggdb compile option
[oweals/mountd.git] / CMakeLists.txt
index 2e712cd7ac08626885dde3f25290e4e96b68b6cb..24a18a27e78689385d8fc30a182cbc9d144ad284 100644 (file)
@@ -1,7 +1,10 @@
 cmake_minimum_required(VERSION 2.6)
 
 PROJECT(mountd C)
-ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations)
+ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-format-truncation)
+
+FIND_PATH(uci_include_dir uci.h)
+INCLUDE_DIRECTORIES(${uci_include_dir})
 
 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")