lua: do not hardcode /opt/local/include for Apple.
authorYousong Zhou <yszhou4tech@gmail.com>
Wed, 12 Nov 2014 13:59:15 +0000 (21:59 +0800)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 11 Dec 2014 16:57:07 +0000 (17:57 +0100)
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
CMakeLists.txt
examples/CMakeLists.txt
lua/CMakeLists.txt

index 737f2ae5b9af8f62e3aedc33c19f262891f1b3d4..4b1570c41e07d5300ed22325ade265b2141c6cb4 100644 (file)
@@ -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)
index 2126d29842dfa045eaa865c2d3ac3e434e1a6ee2..a466dd6566d4263c07d036bfe14eee8e98fbd6ea 100644 (file)
@@ -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}/..)
 
index 04abe0caa0f9c88560dff4003c74c8d8d2fe4720..10c6dc15dd64c2506ce10c0cc610c59acfcb5bd1 100644 (file)
@@ -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)