Add DARWIN flag to fix BUILD_ENGINE_C compilation on macOS
authorraptor <buckyballreaction@gmail.com>
Mon, 26 Aug 2019 15:40:15 -0600
changeset 15383 c8f37fc9c266
parent 15376 5c0479d0ed5b
child 15384 c5934cdeecb6
Add DARWIN flag to fix BUILD_ENGINE_C compilation on macOS
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)