equal
deleted
inserted
replaced
171 if (NOT PHYSFS_LIBRARY OR NOT PHYSFS_INCLUDE_DIR) |
171 if (NOT PHYSFS_LIBRARY OR NOT PHYSFS_INCLUDE_DIR) |
172 message(FATAL_ERROR "Missing PhysFS! Rerun cmake with -DPHYSFS_SYSTEM=off to build the internal version") |
172 message(FATAL_ERROR "Missing PhysFS! Rerun cmake with -DPHYSFS_SYSTEM=off to build the internal version") |
173 endif() |
173 endif() |
174 else() |
174 else() |
175 message(STATUS "PhysFS will be provided by the bundled sources") |
175 message(STATUS "PhysFS will be provided by the bundled sources") |
176 set(physfs_output_name "hw_physfs") |
176 set(physfs_output_name "hwphysfs") |
177 add_subdirectory(misc/libphysfs) |
177 add_subdirectory(misc/libphysfs) |
178 #-XLA is a beta fpc flag that renames libraries before passing them to the linker |
178 #-XLA is a beta fpc flag that renames libraries before passing them to the linker |
179 #we also have to pass PHYSFS_INTERNAL to satisfy windows runtime requirements |
179 #we also have to pass PHYSFS_INTERNAL to satisfy windows runtime requirements |
180 #(should be harmless on other platforms) |
180 #(should be harmless on other platforms) |
181 list(APPEND pascal_flags "-XLAphysfs=${physfs_output_name}" "-dPHYSFS_INTERNAL") |
181 list(APPEND pascal_flags "-XLAphysfs=${physfs_output_name}" "-dPHYSFS_INTERNAL") |