diff options
author | Mario Emmenlauer <memmenlauer@biodataanalysis.de> | 2021-08-31 14:00:16 +0200 |
---|---|---|
committer | Mario Emmenlauer <memmenlauer@biodataanalysis.de> | 2021-09-02 08:54:42 +0200 |
commit | bdb54bc1c985f6fc72712017c4776590c68ec940 (patch) | |
tree | 5c8aceef7d3775895b0d7e1bbca5f5153d02ee5a /build | |
parent | b8069cbe9c83a2ac094a91c5bc59a545caabb652 (diff) | |
download | thrift-bdb54bc1c985f6fc72712017c4776590c68ec940.tar.gz |
Use modern OpenSSL cmake syntax (if available), and larger cmake cleanup
Diffstat (limited to 'build')
-rw-r--r-- | build/cmake/ThriftMacros.cmake | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/build/cmake/ThriftMacros.cmake b/build/cmake/ThriftMacros.cmake index 392b96bc0..65ca4ee85 100644 --- a/build/cmake/ThriftMacros.cmake +++ b/build/cmake/ThriftMacros.cmake @@ -28,7 +28,8 @@ macro(ADD_LIBRARY_THRIFT name) target_include_directories(${name} INTERFACE $<INSTALL_INTERFACE:include>) set_target_properties(${name} PROPERTIES OUTPUT_NAME ${name}${THRIFT_RUNTIME_POSTFIX} # windows link variants (/MT, /MD, /MTd, /MDd) get different names - VERSION ${thrift_VERSION} ) + VERSION ${thrift_VERSION}) + # set_target_properties(${name} PROPERTIES PUBLIC_HEADER "${thriftcpp_HEADERS}") install(TARGETS ${name} EXPORT "${name}Targets" RUNTIME DESTINATION "${BIN_INSTALL_DIR}" @@ -44,20 +45,4 @@ macro(ADD_LIBRARY_THRIFT name) FILE "${name}Targets.cmake" NAMESPACE "${name}::" DESTINATION "${CMAKE_INSTALL_DIR}/thrift") -endmacro() - -macro(TARGET_INCLUDE_DIRECTORIES_THRIFT name) - target_include_directories(${name} ${ARGN}) -endmacro() - -macro(TARGET_LINK_LIBRARIES_THRIFT name) - target_link_libraries(${name} ${ARGN}) -endmacro() - -macro(LINK_AGAINST_THRIFT_LIBRARY target) - target_link_libraries(${target} ${ARGN}) -endmacro() - -macro(TARGET_LINK_LIBRARIES_THRIFT_AGAINST_THRIFT_LIBRARY target libname) - target_link_libraries(${target} ${ARGN} ${libname}) -endmacro() +endmacro()
\ No newline at end of file |