[OpenWrt-Devel] [PATCH 2/5] lua: do not hardcode /opt/local/include for Apple.

Yousong Zhou yszhou4tech at gmail.com
Tue Nov 11 05:51:29 EST 2014


Signed-off-by: Yousong Zhou <yszhou4tech at gmail.com>
---
 CMakeLists.txt          |    5 -----
 examples/CMakeLists.txt |    5 -----
 lua/CMakeLists.txt      |    1 -
 3 files changed, 11 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 737f2ae..4b1570c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,11 +7,6 @@ ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations)
 
 OPTION(BUILD_LUA "build Lua plugin" ON)
 
-IF(APPLE)
-  INCLUDE_DIRECTORIES(/opt/local/include)
-  LINK_DIRECTORIES(/opt/local/lib)
-ENDIF()
-
 INCLUDE(FindPkgConfig)
 PKG_CHECK_MODULES(JSONC json-c)
 IF(JSONC_FOUND)
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 2126d29..a466dd6 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -3,11 +3,6 @@ cmake_minimum_required(VERSION 2.6)
 PROJECT(ubox-examples C)
 ADD_DEFINITIONS(-O1 -Wall -Werror --std=gnu99 -g3)
 
-IF(APPLE)
-  INCLUDE_DIRECTORIES(/opt/local/include)
-  LINK_DIRECTORIES(/opt/local/lib)
-ENDIF()
-
 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
 LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
 
diff --git a/lua/CMakeLists.txt b/lua/CMakeLists.txt
index 04abe0c..10c6dc1 100644
--- a/lua/CMakeLists.txt
+++ b/lua/CMakeLists.txt
@@ -19,7 +19,6 @@ ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -I.. ${LUA_CFLAGS})
 LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
 
 IF(APPLE)
-	ADD_DEFINITIONS(-I/opt/local/include)
 	SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "${CMAKE_SHARED_MODULE_CREATE_C_FLAGS} -undefined dynamic_lookup")
 ENDIF(APPLE)
 
-- 
1.7.10.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list