summaryrefslogtreecommitdiffstats
path: root/CMakeScripts
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2018-11-21 22:19:13 +0000
committerEduard Braun <eduard.braun2@gmx.de>2018-11-21 22:24:25 +0000
commit287e3fc6be418247f1e35fbfa5bf0109e6990be2 (patch)
tree1eabe0482109ef07a6587b568359e96a81bb392a /CMakeScripts
parentCMake: Remove popt from dependencies (diff)
downloadinkscape-287e3fc6be418247f1e35fbfa5bf0109e6990be2.tar.gz
inkscape-287e3fc6be418247f1e35fbfa5bf0109e6990be2.zip
CMake: Specifically enable Microsoft bit-field layout for structs
(silences warnings in clang / already default for gcc)
Diffstat (limited to 'CMakeScripts')
-rw-r--r--CMakeScripts/DefineDependsandFlags.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake
index 6663036e2..4f17c77cf 100644
--- a/CMakeScripts/DefineDependsandFlags.cmake
+++ b/CMakeScripts/DefineDependsandFlags.cmake
@@ -39,6 +39,7 @@ if(WIN32)
list(APPEND INKSCAPE_LIBS "-lmscms")
+ list(APPEND INKSCAPE_CXX_FLAGS "-mms-bitfields")
list(APPEND INKSCAPE_CXX_FLAGS "-mwindows")
list(APPEND INKSCAPE_CXX_FLAGS "-mthreads")