Skip to content

Commit

Permalink
ad
Browse files Browse the repository at this point in the history
  • Loading branch information
brinkqiang committed Jul 11, 2024
1 parent 163e85d commit fd36169
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmake/LuaModule.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ macro(LuaModuleImport LuaVersion ModuleName ModulePath DependLibs)
SET_TARGET_PROPERTIES(${LuaVersion} PROPERTIES PREFIX "")
SET_TARGET_PROPERTIES(${LuaVersion} PROPERTIES SUFFIX ".so")
ADD_EXECUTABLE(lua ${LUA_SOURCES})
TARGET_LINK_LIBRARIES(lua ${LuaVersion} dl)
TARGET_LINK_LIBRARIES(lua ${LuaVersion})
ELSEIF (UNIX)
ADD_DEFINITIONS(-DLUA_USE_LINUX)

ADD_LIBRARY(${LuaVersion} SHARED ${DMLUA_SOURCES})
SET_TARGET_PROPERTIES(${LuaVersion} PROPERTIES COMPILE_FLAGS "-Wl,-E" )
ADD_EXECUTABLE(lua ${LUA_SOURCES})
TARGET_LINK_LIBRARIES(lua ${LuaVersion} m dl)
TARGET_LINK_LIBRARIES(lua ${LuaVersion} m)
ENDIF ()

LIST(APPEND LUA_LIB ${LuaVersion})
Expand Down
2 changes: 1 addition & 1 deletion cmake/ModuleCompileOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ macro(ModuleSetCompileOptions)
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
SET(CMAKE_STATIC_LINKER_FLAGS "${CMAKE_STATIC_LINKER_FLAGS}")

LINK_LIBRARIES(m dl)
LINK_LIBRARIES(m)
FIND_PROGRAM(CCACHE_FOUND ccache)
IF(CCACHE_FOUND)
SET_PROPERTY(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
Expand Down

0 comments on commit fd36169

Please sign in to comment.