From: Yousong Zhou Date: Wed, 12 Nov 2014 13:59:15 +0000 (+0800) Subject: lua: do not hardcode /opt/local/include for Apple. X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c5d80836cd0f9fdcfb0b0dc22d94f6a51fcacacd;p=oweals%2Flibubox.git lua: do not hardcode /opt/local/include for Apple. Signed-off-by: Yousong Zhou --- 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)