diff options
author | James E. King, III <jking@apache.org> | 2017-01-20 10:11:41 -0500 |
---|---|---|
committer | James E. King, III <jking@apache.org> | 2017-01-20 10:12:06 -0500 |
commit | 7edc8faefd391ce11eca3023a35cc54bcb2eb1af (patch) | |
tree | 961c2fccc47ba9cc0a5d70b9b9314950699ea521 /tutorial/cpp | |
parent | e0ccbd6e62e14f32d7c5fe0f9cec6eff3259b863 (diff) | |
download | thrift-7edc8faefd391ce11eca3023a35cc54bcb2eb1af.tar.gz |
THRIFT-3873: fix various compiler warnings and overflow errors
THRIFT-3847: change VERSION to PACKAGE_VERSION to avoid conflicts with third party or OS headers
This closes #1128
Diffstat (limited to 'tutorial/cpp')
-rw-r--r-- | tutorial/cpp/CMakeLists.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tutorial/cpp/CMakeLists.txt b/tutorial/cpp/CMakeLists.txt index 1feec2c35..8634b4144 100644 --- a/tutorial/cpp/CMakeLists.txt +++ b/tutorial/cpp/CMakeLists.txt @@ -44,9 +44,13 @@ add_custom_command(OUTPUT gen-cpp/Calculator.cpp gen-cpp/SharedService.cpp gen-c add_executable(TutorialServer CppServer.cpp) target_link_libraries(TutorialServer tutorialgencpp) LINK_AGAINST_THRIFT_LIBRARY(TutorialServer thrift) -target_link_libraries(TutorialServer ${ZLIB_LIBRARIES}) +if (ZLIB_FOUND) + target_link_libraries(TutorialServer ${ZLIB_LIBRARIES}) +endif () add_executable(TutorialClient CppClient.cpp) target_link_libraries(TutorialClient tutorialgencpp) LINK_AGAINST_THRIFT_LIBRARY(TutorialClient thrift) -target_link_libraries(TutorialClient ${ZLIB_LIBRARIES}) +if (ZLIB_FOUND) + target_link_libraries(TutorialClient ${ZLIB_LIBRARIES}) +endif () |