1
This commit is contained in:
parent
3120257ff9
commit
bdc2534e0a
@ -36,7 +36,7 @@ def need_rebuild():
|
||||
return True
|
||||
s1 = os.stat(proto_name + '.pb.cc')
|
||||
s2 = os.stat('../tools/protobuild/' + proto_name + '.proto')
|
||||
if s1.st_mtime < s2.st_mtime:
|
||||
if s1.st_size <= 0 or s1.st_mtime < s2.st_mtime:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
@ -43,6 +43,12 @@ aux_source_directory(../../third_party/framework/cpp
|
||||
SRC_LIST
|
||||
)
|
||||
|
||||
execute_process(
|
||||
COMMAND touch -a ss_proto.pb.h
|
||||
COMMAND touch -a ss_proto.pb.cc
|
||||
COMMAND touch -a ss_msgid.pb.h
|
||||
COMMAND touch -a ss_msgid.pb.cc
|
||||
)
|
||||
aux_source_directory(.
|
||||
SRC_LIST
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user