Skip to content

Commit

Permalink
fix: lua linking.
Browse files Browse the repository at this point in the history
  • Loading branch information
jochumdev committed Oct 14, 2024
1 parent 1d562d5 commit 697978f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ target_link_libraries (${PROJECT_NAME}
lib3ds
7zip

lua
minizip-ng
spdlog
simdutf::simdutf
Expand All @@ -58,11 +57,12 @@ target_link_libraries (${PROJECT_NAME}
)

target_link_libraries (${PROJECT_NAME}
${LUA_LIBRARIES}
${Boost_LIBRARIES}
)

target_include_directories(${PROJECT_NAME}
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}" "${LUA_INCLUDE_DIR}"
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}" "${LUA_INCLUDE_DIR}"
)

if ("${CMAKE_BUILD_TYPE}" MATCHES "Debug")
Expand Down
4 changes: 2 additions & 2 deletions src/swig/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ swig_add_library(upspring
)

target_include_directories(upspring
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/.."
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}" "${LUA_INCLUDE_DIR}"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/.." "${LUA_INCLUDE_DIR}"
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}"
)

set_target_properties(upspring PROPERTIES
Expand Down

0 comments on commit 697978f

Please sign in to comment.