fix pb2tars compiler and run system error

This commit is contained in:
root 2018-10-02 19:54:10 -04:00
parent 717971e1cb
commit ed4727a484
2 changed files with 9 additions and 1 deletions

View File

@ -199,6 +199,14 @@ help:
#----------------------------------------------------------------------------------
.%.d: %.cc
@echo "update $@ ..."; \
echo -n $< | sed s/\.cc/\.o:/ > $@; \
$(CXX) $(CFLAGS) $(INCLUDE) -MM $< | sed '1s/.*.://' >> $@;
%.o: %.cc
$(CXX) $(CFLAGS) $(INCLUDE) -o $@ -c $<
.%.d: %.cpp
@echo "update $@ ..."; \
echo -n $< | sed s/\.cpp/\.o:/ > $@; \

View File

@ -4,7 +4,7 @@ set(EXECUTABLE_OUTPUT_PATH "${PROJECT_BINARY_DIR}/bin")
aux_source_directory(. DIR_SRCS)
link_libraries(protobuf;protoc)
link_libraries(protobuf;protoc;pthread)
add_executable("pb2tarscpp" ${DIR_SRCS})