comparison Resources/CMake/LuaConfiguration.cmake @ 2477:1c1716adaf26 lua_dll

fix
author amazy
date Mon, 19 Feb 2018 21:52:04 +0100
parents 6c2c59c824a9
children 1e2d5e14b3d3
comparison
equal deleted inserted replaced
2476:6c2c59c824a9 2477:1c1716adaf26
3 SET(LUA_MD5 "2e115fe26e435e33b0d5c022e4490567") 3 SET(LUA_MD5 "2e115fe26e435e33b0d5c022e4490567")
4 SET(LUA_URL "http://www.orthanc-server.com/downloads/third-party/lua-5.1.5.tar.gz") 4 SET(LUA_URL "http://www.orthanc-server.com/downloads/third-party/lua-5.1.5.tar.gz")
5 5
6 DownloadPackage(${LUA_MD5} ${LUA_URL} "${LUA_SOURCES_DIR}") 6 DownloadPackage(${LUA_MD5} ${LUA_URL} "${LUA_SOURCES_DIR}")
7 7
8 add_definitions( 8 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR
9 #-DLUA_LIB=1 9 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR
10 #-Dluaall_c=1 10 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR
11 #-DLUA_COMPAT_ALL=1 # Compile a generic version of Lua 11 ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
12 -DLUA_DL_DLL=1 # enable dynamic libraries loading (for windows) 12 add_definitions(-DLUA_DL_DLOPEN=1) # enable dynamic libraries loading (for linux)
13 -DLUA_USE_DLOPEN= 1 # enable dynamic libraries loading (for linux) 13 elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
14 ) 14 add_definitions(-DLUA_DL_DLL=1) # enable dynamic libraries loading (for windows)
15 elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
16 add_definitions(-LUA_DL_DYLD=1) # enable dynamic libraries loading (for OSX)
17 else()
18 message(FATAL_ERROR "Support your platform here")
19 endif()
15 20
16 include_directories( 21 include_directories(
17 ${LUA_SOURCES_DIR}/src 22 ${LUA_SOURCES_DIR}/src
18 ) 23 )
19 24