1
This commit is contained in:
parent
3120257ff9
commit
bdc2534e0a
@ -36,7 +36,7 @@ def need_rebuild():
|
|||||||
return True
|
return True
|
||||||
s1 = os.stat(proto_name + '.pb.cc')
|
s1 = os.stat(proto_name + '.pb.cc')
|
||||||
s2 = os.stat('../tools/protobuild/' + proto_name + '.proto')
|
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 True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@ -43,6 +43,12 @@ aux_source_directory(../../third_party/framework/cpp
|
|||||||
SRC_LIST
|
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(.
|
aux_source_directory(.
|
||||||
SRC_LIST
|
SRC_LIST
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user