Browse Source

Swapped libprotoc and libprotobuf

libprotobuf being targed before libprotoc was causing Visual Studio to fail in linking protoc.
Michael Matthew Mitchell 6 years ago
parent
commit
dface63d71
1 changed files with 1 additions and 1 deletions
  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