Skip to content

Commit 47329d5

Browse files
author
Ivan Zhakov
committed
cmake: Sort CMake target conditions to generate stable targets.cmake.
Found by: brane * build/generator/gen_cmake.py (Generator.write): Sort result of `list(set())` to have stable order of target conditions. git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1936132 13f79535-47bb-0310-9956-ffa450edef68
1 parent a327438 commit 47329d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build/generator/gen_cmake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def write(self):
214214
else:
215215
install_target = False
216216

217-
enable_condition = list(set(enable_condition))
217+
enable_condition = sorted(list(set(enable_condition)))
218218
if len(enable_condition) > 0:
219219
enable_condition_str = " AND ".join(enable_condition)
220220
else:

0 commit comments

Comments
 (0)