Skip to content

Commit 5154e6f

Browse files
committed
[HOTFIX] Fix Createcmakefile.py to allow other users building baltiks
1 parent 04cbc9c commit 5154e6f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

bin/KSH/Createcmakefile.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,14 @@ def generate_cmake_files(root_dir, atelier):
157157

158158
# Generate sub CMakeLists.txt for each sub-directory in the TRUST sources:
159159
#
160-
for d in listdirorg:
161-
d_short = short_path(root_dir, d)
162-
cmake_fnam = os.path.join(d, 'CMakeLists.txt')
163-
with open(cmake_fnam, "w") as f:
160+
if not atelier: # should not be done for baltiks, only for TRUST
161+
for d in listdirorg:
164162
d_short = short_path(root_dir, d)
165-
s = generate_subdir_cmake(root_dir, d_short, cmake_fnam)
166-
f.write(s)
163+
cmake_fnam = os.path.join(d, 'CMakeLists.txt')
164+
with open(cmake_fnam, "w") as f:
165+
d_short = short_path(root_dir, d)
166+
s = generate_subdir_cmake(root_dir, d_short, cmake_fnam)
167+
f.write(s)
167168

168169
if atelier:
169170
out = open('CMakeLists.txt.trust','w')

0 commit comments

Comments
 (0)