ソースを参照

Swapped libprotoc and libprotobuf

libprotobuf being targed before libprotoc was causing Visual Studio to fail in linking protoc.
Michael Matthew Mitchell 6 年 前
コミット
dface63d71
1 ファイル変更1 行追加1 行削除
  1. 1 1
      cmake/protoc.cmake

+ 1 - 1
cmake/protoc.cmake

@@ -9,7 +9,7 @@ set(protoc_rc_files
 endif()
 
 add_executable(protoc ${protoc_files} ${protoc_rc_files})
-target_link_libraries(protoc libprotobuf libprotoc)
+target_link_libraries(protoc libprotoc libprotobuf)
 add_executable(protobuf::protoc ALIAS protoc)
 
 set_target_properties(protoc PROPERTIES