diff --git a/extern/CMakeLists.txt b/extern/CMakeLists.txt index 59be721..e84cc36 100644 --- a/extern/CMakeLists.txt +++ b/extern/CMakeLists.txt @@ -21,7 +21,10 @@ add_subdirectory(tinygltf EXCLUDE_FROM_ALL) add_subdirectory(imgui EXCLUDE_FROM_ALL) add_subdirectory(dxbc EXCLUDE_FROM_ALL) -# For some reason, FFXIV uses a *32-bit* Lua compiler. We have to build it as 32-bit or else loading the bytecode fails. -add_compile_options(-m32) -add_link_options(-m32) -add_subdirectory(luadec51 EXCLUDE_FROM_ALL) +# TODO: Enable in the Flatpak, it's a bit annoying though as we would have to build it separately +if (NOT BUILD_FLATPAK) + # For some reason, FFXIV uses a *32-bit* Lua compiler. We have to build it as 32-bit or else loading the bytecode fails. + add_compile_options(-m32) + add_link_options(-m32) + add_subdirectory(luadec51 EXCLUDE_FROM_ALL) +endif()