执行命令:
cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%cd%/install -DProtobuf_INCLUDE_DIR=D:\Protobuf\protobuf-3.4.0/build-vs2017/install/include -DProtobuf_LIBRARIES=D:\Protobuf\protobuf-3.4.0/build-vs2017/install/lib/libprotobuf.lib -DProtobuf_PROTOC_EXECUTABLE=D:\Protobuf\protobuf-3.4.0/build-vs2017/install/bin/protoc.exe
报错:Cmake Error:No source or binary drectory provided
应执行命令:
cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%cd%/install -DProtobuf_INCLUDE_DIR=D:\Protobuf\protobuf-3.4.0/build-vs2017/install/include -DProtobuf_LIBRARIES=D:\Protobuf\protobuf-3.4.0/build-vs2017/install/lib/libprotobuf.lib -DProtobuf_PROTOC_EXECUTABLE=D:\Protobuf\protobuf-3.4.0/build-vs2017/install/bin/protoc.exe ..