From: Felix Fietkau Date: Thu, 4 Oct 2012 14:04:46 +0000 (+0200) Subject: lua: include /opt/local/lib and /opt/local/include in the search path on mac os x X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2e90d2637abcbea12f5f4070be7a158fb4637604;p=project%2Fuci.git lua: include /opt/local/lib and /opt/local/include in the search path on mac os x --- diff --git a/lua/CMakeLists.txt b/lua/CMakeLists.txt index 63c6a40..e4295d7 100644 --- a/lua/CMakeLists.txt +++ b/lua/CMakeLists.txt @@ -18,6 +18,11 @@ ENDIF() ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -I.. ${LUA_CFLAGS}) LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..) +IF(APPLE) + INCLUDE_DIRECTORIES(/opt/local/include) + LINK_DIRECTORIES(/opt/local/lib) +ENDIF() + IF(APPLE) SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "${CMAKE_SHARED_MODULE_CREATE_C_FLAGS} -undefined dynamic_lookup") ENDIF(APPLE)