mirror of
https://gitee.com/TarsCloud/TarsCpp.git
synced 2024-12-22 22:16:38 +08:00
fix pb2tars compiler and run system error
This commit is contained in:
parent
717971e1cb
commit
ed4727a484
@ -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
|
.%.d: %.cpp
|
||||||
@echo "update $@ ..."; \
|
@echo "update $@ ..."; \
|
||||||
echo -n $< | sed s/\.cpp/\.o:/ > $@; \
|
echo -n $< | sed s/\.cpp/\.o:/ > $@; \
|
||||||
|
@ -4,7 +4,7 @@ set(EXECUTABLE_OUTPUT_PATH "${PROJECT_BINARY_DIR}/bin")
|
|||||||
|
|
||||||
aux_source_directory(. DIR_SRCS)
|
aux_source_directory(. DIR_SRCS)
|
||||||
|
|
||||||
link_libraries(protobuf;protoc)
|
link_libraries(protobuf;protoc;pthread)
|
||||||
|
|
||||||
add_executable("pb2tarscpp" ${DIR_SRCS})
|
add_executable("pb2tarscpp" ${DIR_SRCS})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user