qulogic/gplugin

Fix the lua build with homebrew
feature/osx-fixing
2016-08-21, Gary Kramlich
63b40806b9c8
Parents 919c883b3568
Children 80d18b471f16
Fix the lua build with homebrew
--- a/lua/CMakeLists.txt Sun Aug 21 21:41:32 2016 -0500
+++ b/lua/CMakeLists.txt Sun Aug 21 22:14:10 2016 -0500
@@ -39,6 +39,8 @@
include_directories(${LUA_INCLUDE_DIRS})
+ link_directories(${LUA_LIBRARY_DIRS})
+
message(STATUS "checking for lua module 'lgi'")
# compile our lua-lgi test program
@@ -48,6 +50,7 @@
CMAKE_FLAGS
-DINCLUDE_DIRECTORIES:STRING=${LUA_INCLUDE_DIRS}
-DLINK_LIBRARIES:STRING=${LUA_LIBRARIES}
+ -DLINK_DIRECTORIES:STRING=${LUA_LIBRARY_DIRS}
OUTPUT_VARIABLE OUTPUT
COPY_FILE ${CMAKE_CURRENT_BINARY_DIR}/gplugin-lua-test-lgi
)