# HG changeset patch # User raptor # Date 1566855615 21600 # Node ID c8f37fc9c2666dd27b80dbd6f7f6c2604bb1e180 # Parent 5c0479d0ed5b517db7196ea82f38059760016dc6 Add DARWIN flag to fix BUILD_ENGINE_C compilation on macOS diff -r 5c0479d0ed5b -r c8f37fc9c266 project_files/hwc/CMakeLists.txt --- a/project_files/hwc/CMakeLists.txt Sun Aug 25 19:39:29 2019 -0600 +++ b/project_files/hwc/CMakeLists.txt Mon Aug 26 15:40:15 2019 -0600 @@ -72,6 +72,9 @@ if(GL2) set(pas2c_args ${pas2c_args} -d GL2) endif() +if(APPLE) + set(pas2c_args ${pas2c_args} -d DARWIN) +endif() if(LIBAV_FOUND) add_subdirectory(${CMAKE_SOURCE_DIR}/hedgewars/avwrapper ${CMAKE_CURRENT_BINARY_DIR}/avwrapper)