workaround for the freepascal bug courtesy of koda
authornemo
Tue, 06 Nov 2018 12:44:38 -0500
changeset 14168 89acfded7722
parent 14167 4791c9a7d5e8
child 14169 d3c9025abd13
workaround for the freepascal bug courtesy of koda
CMakeLists.txt
--- a/CMakeLists.txt	Tue Nov 06 20:20:13 2018 +0300
+++ b/CMakeLists.txt	Tue Nov 06 12:44:38 2018 -0500
@@ -69,6 +69,10 @@
     set(target_library_install_dir "lib" CACHE PATH "install dest for libs")
 endif()
 
+if("${CMAKE_SIZEOF_VOID_P}" EQUAL "4" AND UNIX AND NOT APPLE)
+    set(BUILD_ENGINE_C ON CACHE STRING "PAS2C force-enabled due to a freepascal 32 bit alignment bug" FORCE)
+endif()
+
 #system paths for finding required fonts (see share/hedgewars/Data/fonts)
 #subdirectories will NOT be searched.
 #all fonts that can't be found will be bundled with hedgewars