From dface63d71689c38ed5423ccd058a58317642215 Mon Sep 17 00:00:00 2001 From: Michael Matthew Mitchell Date: Mon, 28 Jan 2019 19:47:57 -0800 Subject: [PATCH] Swapped libprotoc and libprotobuf libprotobuf being targed before libprotoc was causing Visual Studio to fail in linking protoc. --- cmake/protoc.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/protoc.cmake b/cmake/protoc.cmake index bb160f479e..f90e525e80 100644 --- a/cmake/protoc.cmake +++ b/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