diff options
| author | Moritz Eberl <moritz@semiodesk.com> | 2016-04-16 17:26:13 +0000 |
|---|---|---|
| committer | Moritz Eberl <moritz@semiodesk.com> | 2016-04-16 17:26:13 +0000 |
| commit | b477775db77e179940a0580321d9ae6240006433 (patch) | |
| tree | e321f023cd2fd33517b2b539b53c4867183f7edd /CMakeScripts | |
| parent | merge and fixed build (diff) | |
| parent | CXX flags dedup on CMake builds (diff) | |
| download | inkscape-b477775db77e179940a0580321d9ae6240006433.tar.gz inkscape-b477775db77e179940a0580321d9ae6240006433.zip | |
Merge
(bzr r14761.1.12)
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() |
