From: Kefu Chai Date: Thu, 13 Feb 2020 09:50:29 +0000 (+0800) Subject: cmake: should expose ${C-ARES_BINARY_DIR} from c-ares X-Git-Tag: v15.1.1~327^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=01129acbf09a84000747daf28653aa56bbc27c00;p=ceph.git cmake: should expose ${C-ARES_BINARY_DIR} from c-ares as it's public header `ares.h` includes `ares_build.h`, which is generated in the build directory. Signed-off-by: Kefu Chai --- diff --git a/cmake/modules/Buildc-ares.cmake b/cmake/modules/Buildc-ares.cmake index 83cac92f95652..ff9452095fe4f 100644 --- a/cmake/modules/Buildc-ares.cmake +++ b/cmake/modules/Buildc-ares.cmake @@ -14,7 +14,7 @@ function(build_c_ares) add_library(c-ares::c-ares STATIC IMPORTED) add_dependencies(c-ares::c-ares c-ares_ext) set_target_properties(c-ares::c-ares PROPERTIES - INTERFACE_INCLUDE_DIRECTORIES "${C-ARES_SOURCE_DIR}" + INTERFACE_INCLUDE_DIRECTORIES "${C-ARES_SOURCE_DIR};${C-ARES_BINARY_DIR}" IMPORTED_LINK_INTERFACE_LANGUAGES "C" IMPORTED_LOCATION "${C-ARES_BINARY_DIR}/lib/libcares.a") # to appease find_package()