lua: do not hardcode /opt/local/include for Apple.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
parent
cbf80de7f4
commit
c5d80836cd
3 changed files with 0 additions and 11 deletions
|
@ -7,11 +7,6 @@ ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -Wmissing-declarations)
|
||||||
|
|
||||||
OPTION(BUILD_LUA "build Lua plugin" ON)
|
OPTION(BUILD_LUA "build Lua plugin" ON)
|
||||||
|
|
||||||
IF(APPLE)
|
|
||||||
INCLUDE_DIRECTORIES(/opt/local/include)
|
|
||||||
LINK_DIRECTORIES(/opt/local/lib)
|
|
||||||
ENDIF()
|
|
||||||
|
|
||||||
INCLUDE(FindPkgConfig)
|
INCLUDE(FindPkgConfig)
|
||||||
PKG_CHECK_MODULES(JSONC json-c)
|
PKG_CHECK_MODULES(JSONC json-c)
|
||||||
IF(JSONC_FOUND)
|
IF(JSONC_FOUND)
|
||||||
|
|
|
@ -3,11 +3,6 @@ cmake_minimum_required(VERSION 2.6)
|
||||||
PROJECT(ubox-examples C)
|
PROJECT(ubox-examples C)
|
||||||
ADD_DEFINITIONS(-O1 -Wall -Werror --std=gnu99 -g3)
|
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}/..)
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
|
||||||
LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
|
LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@ ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -I.. ${LUA_CFLAGS})
|
||||||
LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
|
LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
|
||||||
|
|
||||||
IF(APPLE)
|
IF(APPLE)
|
||||||
ADD_DEFINITIONS(-I/opt/local/include)
|
|
||||||
SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "${CMAKE_SHARED_MODULE_CREATE_C_FLAGS} -undefined dynamic_lookup")
|
SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "${CMAKE_SHARED_MODULE_CREATE_C_FLAGS} -undefined dynamic_lookup")
|
||||||
ENDIF(APPLE)
|
ENDIF(APPLE)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue