fix include path
authorFelix Fietkau <nbd@openwrt.org>
Sat, 26 Mar 2011 20:55:03 +0000 (21:55 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 26 Mar 2011 20:55:11 +0000 (21:55 +0100)
CMakeLists.txt
lua/CMakeLists.txt

index 3d7d735c5bcfe2dd08b519b10033663e3e4eafb4..9e50a5bc3373a37edac61f3368dadc895d3eab65 100644 (file)
@@ -4,7 +4,7 @@ PROJECT(uci C)
 
 SET(CMAKE_INSTALL_PREFIX /usr)
 
-ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -DUCI_PREFIX="${CMAKE_INSTALL_PREFIX}")
+ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -I. -DUCI_PREFIX="${CMAKE_INSTALL_PREFIX}")
 
 OPTION(UCI_PLUGIN_SUPPORT "plugin support" ON)
 OPTION(UCI_DEBUG "debugging support" OFF)
@@ -37,7 +37,7 @@ TARGET_LINK_LIBRARIES(ucimap-example uci-static ucimap dl)
 ADD_SUBDIRECTORY(lua)
 
 INSTALL(FILES uci.h uci_config.h ucimap.h
-       DESTINATION include/libubox
+       DESTINATION include
 )
 
 INSTALL(TARGETS uci-shared uci-static cli cli-static
index 533317aa08d18510d245da03c2e0ad122de0e907..fe960617caeacb4e1d671c274a188a12e52ae1e9 100644 (file)
@@ -4,7 +4,7 @@ PROJECT(uci C)
 
 SET(CMAKE_INSTALL_PREFIX /)
 
-ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3)
+ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -I..)
 
 IF(APPLE)
        SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "${CMAKE_SHARED_MODULE_CREATE_C_FLAGS} -undefined dynamic_lookup")