diff options
| author | Shlomi Fish <shlomif@gmail.com> | 2016-04-16 17:14:12 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2016-04-16 17:14:12 +0000 |
| commit | 79c7cc29d83772771100d2a10900de15a66af0f7 (patch) | |
| tree | 85f13e906b533e0c0d366693166a0da0f07a10e5 /CMakeScripts | |
| parent | CMake build: builds with WITH_DBUS (diff) | |
| download | inkscape-79c7cc29d83772771100d2a10900de15a66af0f7.tar.gz inkscape-79c7cc29d83772771100d2a10900de15a66af0f7.zip | |
CXX flags dedup on CMake builds
(bzr r14854)
Diffstat (limited to 'CMakeScripts')
| -rw-r--r-- | CMakeScripts/CanonicalizeFlagsVar.cmake | 11 |
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() |
