From c17a7176260697d325b5b8766b08f68586930a38 Mon Sep 17 00:00:00 2001 From: laikh Date: Fri, 16 Aug 2019 15:22:28 +0200 Subject: [PATCH] Add -D_ENABLE_EXTENDED_ALIGNED_STORAGE for MSVC to fix the build --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a43d6630..4340df0b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,6 +61,9 @@ if(MSVC) # Additional options # bigobj: generate more object sections than allowed by default add_compile_options("/wd4244" "/wd4267" "/wd4503" "/wd4800" "/bigobj") + + # Fix the issue: https://github.com/CelestiaProject/Celestia/issues/364 + add_definitions(-D_ENABLE_EXTENDED_ALIGNED_STORAGE) endif() if(UNIX AND (NOT APPLE) AND (NOT CYGWIN))