Skip to content

Commit 51977da

Browse files
committed
modify SConscript file
1 parent 676b91b commit 51977da

7 files changed

Lines changed: 9 additions & 2 deletions

File tree

‎cpp_util/SConscript‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
import os
44
Import('env')
5+
env = env.Clone()
56

67
cpps = []
78
subdirs = ['common', 'file_util', 'log', 'mysql', 'string_util', 'thread']
89

910
for dir in subdirs:
10-
o = SConscript('%s/SConscript' % dir)
11-
cpps.append(o)
11+
obj = SConscript('%s/SConscript' % dir)
12+
cpps.append(obj)
1213

1314
Return('cpps')

‎cpp_util/common/SConscript‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#--- python mode ---
22

33
Import('env')
4+
env = env.Clone()
45

56
cpps = Glob('*.cpp')
67
Return('cpps')

‎cpp_util/file_util/SConscript‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#--- python mode ---
22

33
Import('env')
4+
env = env.Clone()
45

56
cpps = Glob('*.cpp')
67
Return('cpps')

‎cpp_util/log/SConscript‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#--- python mode ---
22

33
Import('env')
4+
env = env.Clone()
45

56
cpps = Glob('*.cpp')
67
Return('cpps')

‎cpp_util/mysql/SConscript‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#--- python mode ---
22

33
Import('env')
4+
env = env.Clone()
45

56
cpps = Glob('*.cpp')
67
Return('cpps')

‎cpp_util/string_util/SConscript‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#--- python mode ---
22

33
Import('env')
4+
env = env.Clone()
45

56
cpps = Glob('*.cpp')
67
Return('cpps')

‎cpp_util/thread/SConscript‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#--- python mode ---
22

33
Import('env')
4+
env = env.Clone()
45

56
cpps = Glob('*.cpp')
67
Return('cpps')

0 commit comments

Comments
 (0)