[OpenWrt-Devel,v2,02/10] lua: do not hardcode /opt/local/include for Apple.
diff mbox

Message ID 1415800763-14311-3-git-send-email-yszhou4tech@gmail.com
State Accepted
Headers show

Commit Message

Yousong Zhou Nov. 12, 2014, 1:59 p.m. UTC
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
---
 CMakeLists.txt          |    5 -----
 examples/CMakeLists.txt |    5 -----
 lua/CMakeLists.txt      |    1 -
 3 files changed, 11 deletions(-)

Patch
diff mbox

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)