summaryrefslogtreecommitdiff
path: root/tutorial
diff options
context:
space:
mode:
authorMario Emmenlauer <memmenlauer@biodataanalysis.de>2021-08-31 14:00:16 +0200
committerMario Emmenlauer <memmenlauer@biodataanalysis.de>2021-09-02 08:54:42 +0200
commitbdb54bc1c985f6fc72712017c4776590c68ec940 (patch)
tree5c8aceef7d3775895b0d7e1bbca5f5153d02ee5a /tutorial
parentb8069cbe9c83a2ac094a91c5bc59a545caabb652 (diff)
downloadthrift-bdb54bc1c985f6fc72712017c4776590c68ec940.tar.gz
Use modern OpenSSL cmake syntax (if available), and larger cmake cleanup
Diffstat (limited to 'tutorial')
-rw-r--r--tutorial/cpp/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/tutorial/cpp/CMakeLists.txt b/tutorial/cpp/CMakeLists.txt
index b250a2c1c..fc52bb144 100644
--- a/tutorial/cpp/CMakeLists.txt
+++ b/tutorial/cpp/CMakeLists.txt
@@ -35,7 +35,7 @@ set(tutorialgencpp_SOURCES
gen-cpp/tutorial_types.cpp
)
add_library(tutorialgencpp STATIC ${tutorialgencpp_SOURCES})
-LINK_AGAINST_THRIFT_LIBRARY(tutorialgencpp thrift)
+target_link_libraries(tutorialgencpp thrift)
add_custom_command(OUTPUT gen-cpp/Calculator.cpp gen-cpp/SharedService.cpp gen-cpp/shared_types.cpp gen-cpp/tutorial_constants.cpp gen-cpp/tutorial_types.cpp
COMMAND ${THRIFT_COMPILER} --gen cpp -r ${PROJECT_SOURCE_DIR}/tutorial/tutorial.thrift
@@ -43,14 +43,14 @@ 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 thrift)
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 thrift)
if (ZLIB_FOUND)
target_link_libraries(TutorialClient ${ZLIB_LIBRARIES})
endif ()