equal
deleted
inserted
replaced
146 #NAME_WE would strip the .1 (or .2) next to the ".so" |
146 #NAME_WE would strip the .1 (or .2) next to the ".so" |
147 string(REGEX REPLACE "${CMAKE_SHARED_LIBRARY_PREFIX}(.*)${CMAKE_SHARED_LIBRARY_SUFFIX}" "\\1" LUA_LIBRARY_NAME "${LUA_LIBRARY_NAME}") |
147 string(REGEX REPLACE "${CMAKE_SHARED_LIBRARY_PREFIX}(.*)${CMAKE_SHARED_LIBRARY_SUFFIX}" "\\1" LUA_LIBRARY_NAME "${LUA_LIBRARY_NAME}") |
148 add_flag_append(CMAKE_Pascal_FLAGS "-Fl${LUA_LIBRARY_DIR} -XLAlua=${LUA_LIBRARY_NAME}") |
148 add_flag_append(CMAKE_Pascal_FLAGS "-Fl${LUA_LIBRARY_DIR} -XLAlua=${LUA_LIBRARY_NAME}") |
149 else() |
149 else() |
150 add_definitions(-dLUA_INTERNAL) |
150 add_definitions(-dLUA_INTERNAL) |
|
151 add_definitions(-dLUA51) |
151 list(APPEND HW_LINK_LIBS lua) |
152 list(APPEND HW_LINK_LIBS lua) |
152 add_flag_append(CMAKE_Pascal_FLAGS "-XLAlua=${lua_output_name}") |
153 add_flag_append(CMAKE_Pascal_FLAGS "-XLAlua=${lua_output_name}") |
153 endif() |
154 endif() |
154 |
155 |
155 if(PHYSFS_SYSTEM) |
156 if(PHYSFS_SYSTEM) |