Skip to content

Commit

Permalink
Add the missing lua_sax dependency on the luasandbox lib
Browse files Browse the repository at this point in the history
- Fixes the OSX build with cmake 3.5+
  • Loading branch information
trink committed May 9, 2016
1 parent 7abcb7c commit 9733186
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions cmake/externals.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ externalproject_add(
CMAKE_ARGS ${SANDBOX_CMAKE_ARGS}
INSTALL_ARGS ${INST_ARGS}
)
add_dependencies(lua_bloom_filter luasandbox)

externalproject_add(
lua_circular_buffer
Expand All @@ -127,6 +128,7 @@ externalproject_add(
CMAKE_ARGS ${SANDBOX_CMAKE_ARGS}
INSTALL_ARGS ${INST_ARGS}
)
add_dependencies(lua_circular_buffer luasandbox)

externalproject_add(
lua_hyperloglog
Expand All @@ -135,6 +137,7 @@ externalproject_add(
CMAKE_ARGS ${SANDBOX_CMAKE_ARGS}
INSTALL_ARGS ${INST_ARGS}
)
add_dependencies(lua_hyperloglog luasandbox)

externalproject_add(
lua_cuckoo_filter
Expand All @@ -143,6 +146,7 @@ externalproject_add(
CMAKE_ARGS ${SANDBOX_CMAKE_ARGS}
INSTALL_ARGS ${INST_ARGS}
)
add_dependencies(lua_cuckoo_filter luasandbox)

externalproject_add(
lua_sax
Expand All @@ -151,3 +155,4 @@ externalproject_add(
CMAKE_ARGS ${SANDBOX_CMAKE_ARGS}
INSTALL_ARGS ${INST_ARGS}
)
add_dependencies(lua_sax luasandbox)
4 changes: 0 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ set ( CMAKE_BUILD_WITH_INSTALL_RPATH FALSE CACHE STRING "" FORCE )
add_library(luasandbox SHARED ${LUA_SANDBOX_SRC})

add_dependencies(luasandbox ${LUA_PROJECT})
add_dependencies(lua_bloom_filter luasandbox)
add_dependencies(lua_circular_buffer luasandbox)
add_dependencies(lua_hyperloglog luasandbox)
add_dependencies(lua_cuckoo_filter luasandbox)

if(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
Expand Down

0 comments on commit 9733186

Please sign in to comment.