From fc4319aaf907f7048af8fc582faa1f9744439a4a Mon Sep 17 00:00:00 2001 From: SpaceIm <30052553+SpaceIm@users.noreply.github.com> Date: Tue, 18 Apr 2023 23:54:44 +0200 Subject: [PATCH] add AWS_COMPRESSION_USE_IMPORT_EXPORT interface definition if shared --- recipes/aws-c-compression/all/conanfile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/aws-c-compression/all/conanfile.py b/recipes/aws-c-compression/all/conanfile.py index 635a3e71fc9b4..032a16573f4d2 100644 --- a/recipes/aws-c-compression/all/conanfile.py +++ b/recipes/aws-c-compression/all/conanfile.py @@ -76,6 +76,8 @@ def package_info(self): self.cpp_info.set_property("cmake_target_name", "AWS::aws-c-compression") # TODO: back to global scope in conan v2 once cmake_find_package* generators removed self.cpp_info.components["aws-c-compression-lib"].libs = ["aws-c-compression"] + if self.options.shared: + self.cpp_info.components["aws-c-compression-lib"].defines.append("AWS_COMPRESSION_USE_IMPORT_EXPORT") # TODO: to remove in conan v2 once cmake_find_package* generators removed self.cpp_info.filenames["cmake_find_package"] = "aws-c-compression"