equal
deleted
inserted
replaced
162 add_definitions(-dLUA_INTERNAL) |
162 add_definitions(-dLUA_INTERNAL) |
163 list(APPEND HW_LINK_LIBS lua) |
163 list(APPEND HW_LINK_LIBS lua) |
164 add_flag_append(CMAKE_Pascal_FLAGS "-XLAlua=${lua_output_name}") |
164 add_flag_append(CMAKE_Pascal_FLAGS "-XLAlua=${lua_output_name}") |
165 endif() |
165 endif() |
166 |
166 |
167 if(PHYSFS_SYSTEM) |
167 # PhysFS |
168 get_filename_component(PHYSFS_LIBRARY_DIR ${PHYSFS_LIBRARY} PATH) |
168 get_filename_component(PHYSFS_LIBRARY_DIR ${PHYSFS_LIBRARY} PATH) |
169 add_flag_append(CMAKE_Pascal_FLAGS "-Fl${PHYSFS_LIBRARY}") |
169 add_flag_append(CMAKE_Pascal_FLAGS "-Fl${PHYSFS_LIBRARY}") |
170 else() |
170 |
171 add_definitions(-dPHYSFS_INTERNAL) |
|
172 list(APPEND HW_LINK_LIBS physfs) |
|
173 #-XLA is a beta fpc flag that renames libraries before passing them to the linker |
|
174 #we also have to pass PHYSFS_INTERNAL to satisfy windows runtime requirements |
|
175 #(should be harmless on other platforms) |
|
176 add_flag_append(CMAKE_Pascal_FLAGS "-XLAphysfs=${physfs_output_name}") |
|
177 endif() |
|
178 list(APPEND HW_LINK_LIBS physlayer) |
171 list(APPEND HW_LINK_LIBS physlayer) |
179 |
172 |
180 |
173 |
181 #opengl 2 |
174 #opengl 2 |
182 IF(GL2) |
175 IF(GL2) |