summaryrefslogtreecommitdiffstats
path: root/CMakeScripts/CanonicalizeFlagsVar.cmake
diff options
context:
space:
mode:
authorRichard White <rwhite8282@gmail.com>2016-05-19 01:17:29 +0000
committerRichard White <rwhite8282@gmail.com>2016-05-19 01:17:29 +0000
commit1fe9c2603c33fddcd9f2688b30e843f91e1a86fa (patch)
tree13289cbe033a46a40eb829437e115b5393e2ca84 /CMakeScripts/CanonicalizeFlagsVar.cmake
parentCorrected frame extension stroke and fill values on 64 bit machine. (diff)
parentGTK3: Another widget named. (diff)
downloadinkscape-1fe9c2603c33fddcd9f2688b30e843f91e1a86fa.tar.gz
inkscape-1fe9c2603c33fddcd9f2688b30e843f91e1a86fa.zip
Merge from Inkscape trunk.
(bzr r14668.1.3)
Diffstat (limited to 'CMakeScripts/CanonicalizeFlagsVar.cmake')
-rw-r--r--CMakeScripts/CanonicalizeFlagsVar.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeScripts/CanonicalizeFlagsVar.cmake b/CMakeScripts/CanonicalizeFlagsVar.cmake
new file mode 100644
index 000000000..ddc5b7b5d
--- /dev/null
+++ b/CMakeScripts/CanonicalizeFlagsVar.cmake
@@ -0,0 +1,11 @@
+# This file is copyright by Shlomi Fish, 2016.
+#
+# This file is licensed under the MIT/X11 license:
+# https://opensource.org/licenses/mit-license.php
+
+macro (canonicalize_flags_var in_val out_var)
+ string(REPLACE " " ";" _c "${in_val}")
+ list(REMOVE_DUPLICATES _c)
+ list(SORT _c)
+ string(REPLACE ";" " " "${out_var}" "${_c}")
+endmacro()