From 2e90d2637abcbea12f5f4070be7a158fb4637604 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 4 Oct 2012 16:04:46 +0200 Subject: [PATCH] lua: include /opt/local/lib and /opt/local/include in the search path on mac os x --- lua/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.30.2