# HG changeset patch # User nemo # Date 1541526278 18000 # Node ID 89acfded7722ca3cc246609e0e664e13c923c92e # Parent 4791c9a7d5e8352a1c89e28382566467c43c47e0 workaround for the freepascal bug courtesy of koda diff -r 4791c9a7d5e8 -r 89acfded7722 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