mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Fix CMake configure step for Lua
This commit is contained in:
parent
e8e122e9ce
commit
4ad97f548e
@ -199,7 +199,7 @@ extern \"C\" {
|
||||
file(TO_NATIVE_PATH "${LUA_VANILLA_SOURCE_LUA_HPP}" LUA_VANILLA_SOURCE_LUA_HPP)
|
||||
endif()
|
||||
|
||||
set(LUA_VANILLA_INCLUDE_DIRS ${lua-vanilla_SOURCE_DIR}/include)
|
||||
set(LUA_VANILLA_INCLUDE_DIRS ${lua-vanilla_SOURCE_DIR}/src)
|
||||
endif()
|
||||
|
||||
# # Target names
|
||||
@ -251,7 +251,9 @@ else()
|
||||
endif()
|
||||
target_compile_options(${liblua}
|
||||
PRIVATE ${LUA_VANILLA_LUALIB_COMPILER_OPTIONS})
|
||||
if(LUA_LOCAL_DIR)
|
||||
add_dependencies(${liblua} LUA_VANILLA)
|
||||
endif()
|
||||
target_link_libraries(${liblua} PRIVATE ${CMAKE_DL_LIBS})
|
||||
if (UNIX)
|
||||
target_link_libraries(${liblua} PRIVATE m)
|
||||
|
Loading…
x
Reference in New Issue
Block a user