Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OSX] Hardcoded CoreFoundation path in aws-c-common-targets.cmake #510

Closed
kszucs opened this issue Sep 27, 2019 · 3 comments · Fixed by #733
Closed

[OSX] Hardcoded CoreFoundation path in aws-c-common-targets.cmake #510

kszucs opened this issue Sep 27, 2019 · 3 comments · Fixed by #733
Labels
closing-soon This issue will automatically close in 5 days unless further comments are made.

Comments

@kszucs
Copy link

kszucs commented Sep 27, 2019

I don't have Xcode installed locally, only command line tools, so the linker cannot locate CoreFoundation:

set_target_properties(AWS::aws-c-common PROPERTIES
  INTERFACE_COMPILE_DEFINITIONS "AWS_COMMON_USE_IMPORT_EXPORT"
  INTERFACE_COMPILE_OPTIONS "-pthread"
  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
  INTERFACE_LINK_LIBRARIES "-pthread;pthread;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreFoundation.framework"
)

A temporary solution is overriding it.

What platform/OS are you using?

OSX Mojave

Which version of the SDK?

Installed by home-brew:

aws-sdk-cpp: stable 1.7.180 (bottled), HEAD
AWS SDK for C++
https://github.com/aws/aws-sdk-cpp
/usr/local/Cellar/aws-sdk-cpp/1.7.180 (22,152 files, 426.2MB)
  Poured from bottle on 2019-09-18 at 15:36:12
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/aws-sdk-cpp.rb

Original issue: aws/aws-sdk-cpp#1245

@JonathanHenson
Copy link
Contributor

JonathanHenson commented Sep 27, 2019 via email

@kszucs
Copy link
Author

kszucs commented Mar 11, 2020

Hey Jonathan, just saw your response. I'll try to check it in the upcoming days.

@graebm graebm added the closing-soon This issue will automatically close in 5 days unless further comments are made. label Apr 23, 2020
xhochy added a commit to xhochy/aws-c-common that referenced this issue Sep 23, 2020
This would otherwise hardcode the Xcode version and we would have to recompile after each Xcode update.

Fixes awslabs#510
@xhochy
Copy link
Contributor

xhochy commented Sep 23, 2020

Made a PR to fix this: #700

xhochy added a commit to xhochy/aws-c-common that referenced this issue Nov 24, 2020
This would otherwise hardcode the Xcode version and we would have to recompile after each Xcode update.

Fixes awslabs#510
bretambrose added a commit that referenced this issue Mar 11, 2021
* Don't hardcode the CoreFoundation path

This would otherwise hardcode the Xcode version and we would have to recompile after each Xcode update.

Fixes #510

* Address review comments

Co-authored-by: Jonathan M. Henson <henso@amazon.com>
Co-authored-by: Bret Ambrose <bretambrose@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closing-soon This issue will automatically close in 5 days unless further comments are made.
Projects
None yet
4 participants