Skip to content

Commit

Permalink
add AWS_COMPRESSION_USE_IMPORT_EXPORT interface definition if shared
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceIm committed Apr 18, 2023
1 parent 137297b commit fc4319a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/aws-c-compression/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit fc4319a

Please sign in to comment.