]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: should expose ${C-ARES_BINARY_DIR} from c-ares
authorKefu Chai <kchai@redhat.com>
Thu, 13 Feb 2020 09:50:29 +0000 (17:50 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 13 Feb 2020 09:51:45 +0000 (17:51 +0800)
as it's public header `ares.h` includes `ares_build.h`, which is
generated in the build directory.

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/Buildc-ares.cmake

index 83cac92f95652652cc8c55df0fee0637071f2c38..ff9452095fe4f0410ca81055fc6414e13ad23d51 100644 (file)
@@ -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()