merge
authornemo
Mon, 19 Aug 2019 09:11:49 -0400
changeset 15360 cf4a9632e649
parent 15359 63372e3879df (current diff)
parent 15358 06e5f9ec5f8d (diff)
child 15361 4e91a7050add
merge
--- a/hedgewars/CMakeLists.txt	Sat Aug 17 01:06:13 2019 +0200
+++ b/hedgewars/CMakeLists.txt	Mon Aug 19 09:11:49 2019 -0400
@@ -214,6 +214,11 @@
     set_source_files_properties(hwLibrary.pas PROPERTIES OBJECT_DEPENDS "${sourcefiles_sofar};${CMAKE_CURRENT_SOURCE_DIR}/hwengine.pas")
     add_library(hwengine SHARED hwLibrary.pas)
 else()
+    if(APPLE)
+        # Handle large linker install_names
+        add_flag_prepend(CMAKE_Pascal_FLAGS "-k-headerpad_max_install_names")
+    endif()
+
     # no need to change name here because target has same name
     set(engine_output_name "hwengine${CMAKE_EXECUTABLE_SUFFIX}")
     set(destination_dir ${target_binary_install_dir})