diff options
author | Alexander Polcyn <apolcyn@google.com> | 2018-06-06 12:06:52 -0700 |
---|---|---|
committer | Alexander Polcyn <apolcyn@google.com> | 2018-06-06 12:06:52 -0700 |
commit | 18caf6d2feb884031a22fc7b5d23a084869f113a (patch) | |
tree | cecf36bb5857db464db400ae9b4998a3080e792d | |
parent | 869f8779ad8f8f902eb24f838b3db2879c95a9da (diff) |
link address sorting against gRPC_BASELIB_LIBRARIES, for windows
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | templates/CMakeLists.txt.template | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index af56886cd9..71bebde5d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -700,6 +700,7 @@ target_include_directories(address_sorting ) target_link_libraries(address_sorting + ${_gRPC_BASELIB_LIBRARIES} ${_gRPC_ALLTARGETS_LIBRARIES} ) diff --git a/templates/CMakeLists.txt.template b/templates/CMakeLists.txt.template index 06adb33739..435217bacd 100644 --- a/templates/CMakeLists.txt.template +++ b/templates/CMakeLists.txt.template @@ -35,7 +35,7 @@ def get_deps(target_dict): deps = [] - if target_dict.get('baselib', False): + if target_dict.get('baselib', False) or target_dict['name'] == 'address_sorting': deps.append("${_gRPC_BASELIB_LIBRARIES}") if target_dict.get('build', None) in ['protoc']: deps.append("${_gRPC_PROTOBUF_PROTOC_LIBRARIES}") |