X-Git-Url: http://git.openwrt.org/?p=project%2Fugps.git;a=blobdiff_plain;f=CMakeLists.txt;h=76c910304a6d0e55417c2a611bf7f375712d694f;hp=7fe7a165e56d8f2b56e02426843351af906cee59;hb=HEAD;hpb=ab92ba862353cc1d76cd769b8f095e197c75538a diff --git a/CMakeLists.txt b/CMakeLists.txt index 7fe7a16..ad6cdf0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 2.6) PROJECT(ugps C) -ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations) +ADD_DEFINITIONS(-Os -ggdb -Wextra -Wall -Werror --std=gnu99 -Wmissing-declarations -Wno-unused-parameter) SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") @@ -19,7 +19,7 @@ INCLUDE_DIRECTORIES(${ubox_include_dir} ${ubus_include_dir}) ADD_EXECUTABLE(ugps ${SOURCES}) -TARGET_LINK_LIBRARIES(ugps ${ubox} ${ubus}) +TARGET_LINK_LIBRARIES(ugps ${ubox} ${ubus} m) INSTALL(TARGETS ugps RUNTIME DESTINATION sbin