Author: rinrab Date: Thu Aug 8 11:41:39 2024 New Revision: 1919735 URL: http://svn.apache.org/viewvc?rev=1919735&view=rev Log: On the 'cmake' branch: Remove duplicates from enable conditions before write them.
* build/generator/gen-cmake.py (Generator.write): Use list(set(...)) trick to remove duplicates from the enable_condition array. Modified: subversion/branches/cmake/build/generator/gen_cmake.py Modified: subversion/branches/cmake/build/generator/gen_cmake.py URL: http://svn.apache.org/viewvc/subversion/branches/cmake/build/generator/gen_cmake.py?rev=1919735&r1=1919734&r2=1919735&view=diff ============================================================================== --- subversion/branches/cmake/build/generator/gen_cmake.py (original) +++ subversion/branches/cmake/build/generator/gen_cmake.py Thu Aug 8 11:41:39 2024 @@ -177,6 +177,7 @@ class Generator(gen_base.GeneratorBase): else: install_target = False + enable_condition = list(set(enable_condition)) if len(enable_condition) > 0: enable_condition_str = " AND ".join(enable_condition) else: