-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Error build/link against specified curl when system installed curl found #2646
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
Comments
Hello @ChuckCottrill , Thank you very much for your submission. Thank you for your time and collaboration, Sincerely, Yasmine |
Hello @ChuckCottrill , Could you try passing Best, Yasmine |
Hello Yasmine, I would be happy to try the change you suggested. |
Hi @ChuckCottrill , I'm curious why you would need to set
and then built the sample application that is going to use built and installed SDK:
According to cmake documentation, CMAKE_PREFIX_PATH is a Semicolon-separated list of directories specifying installation prefixes to be searched by the find_package()...
Best regards, |
Greetings! It looks like this issue hasn’t been active in longer than a week. We encourage you to check if this is still an issue in the latest release. Because it has been longer than a week since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or add an upvote to prevent automatic closure, or if the issue is already closed, please feel free to open a new one. |
Describe the bug
Error building aws-sdk-ccp-core
want to link against local download and built
curl-8.0.1
The variables
CURL_INCLUDE_DIR, CURL_LIBRARY
, are specified,-
CURL_INCLUDE_DIR="${DEPEND_INSTALL_DIR}/curl-${LIBCURL_VERSION}/include" \
-
CURL_LIBRARY="${DEPEND_INSTALL_DIR}/curl-${LIBCURL_VERSION}/lib/libcurl.dylib" \
These desired directories exist and are correctly referenced
But cmake files look for system libraries first, using FindCURL.
Expected Behavior
Curl library and include directories, CURL_INCLUDE_DIR, CURL_LIBRARY, should be recognized and used to access specified version of curl. Or, an option should be provided to configure cmake to use these variables instead of system values.
Linking should succeed.
Current Behavior
message:
CMake Warning:
Manually-specified variables were not used by the project:
Reproduction Steps
Have local version of curl installed in
/usr/local/lib
, with/usr/local/lib/cmake/CURL
directoryThese directories exist and are accessible,
Possible Solution
One option could be provided to configure cmake to use/prefer these variables instead of system values.
Another option would be to add a flag (e.g.
CURL_USE_SYSTEM
orCURL_USE_SPECIFIED
) to indicate which library to prefer.Additional Information/Context
There is a system-wide setting,
NO_CMAKE_SYSTEM_PATH
, but that prevents finding any system installed libraries.AWS CPP SDK version used
1.9.379
Compiler and Version used
clang++ --version Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Operating System and version
mac os ventura
The text was updated successfully, but these errors were encountered: