CMakeLists.txt
changeset 14152 89acfded7722
parent 13914 a44e4c057f57
child 14268 29d614a5c9eb
--- 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