-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Windows Cmake find_package broken without AWSSDKConfigVersion.cmake #2749
Comments
Hey @MetaDevo I tried replicating your bug and cannot do so if we are referring to your bug strictly as
So I might need more information from you to replicate. On my machine using a fresh pull of the SDK and a VS toolchain, I install the SDK using
Then in a small sample application main .cpp
CMakeLists.txt
built with
And I can confirm it finds the installed binaries fines and runs and lists buckets. If it does work for you can you update it in a way to replicate what you are seeing? I think you might just be missing the windows specific However if you already know all of that and it still doesnt work, could you link me what isnt working for prefrably a test example the size of the one i just linked? would be interested to see what your cmake file looks like. |
Some more information:
Using @sbiscigl 's test example, I reproduce the exact same cmake error. Again this is a cmake error as launched from Qt Creator. I am using CMake version 3.24.2 however—@sbiscigl specified 3.27.
And the specific lines referenced is in AWSSDKConfig.cmake starting at line 123:
|
Just to get QtCreator out of the equation, I tried cmake (ver. 3.25.3) from a command line (cygwin bash)
on the same Windows box on @sbiscigl 's test example and got the same error:
|
This seems to be the same bug as #2576. |
|
Describe the bug
Using find_package in Cmake to include aws-sdk-cpp in a Windows desktop app results in finding the headers but not the binaries, giving an error message.
Expected Behavior
No Cmake errors.
Current Behavior
Running Cmake results in this error and then it stops:
Reproduction Steps
Build aws-sdk-cpp from source from VS Dev Cmd Prompt:
In my own project's CMakeLists.txt, relevant lines:
Run CMake.
Possible Solution
This was most likely introduced with this change: 7a7591f
I was able to temporarily fix the problem by adding this line back into C:\Program Files (x86)\aws-cpp-sdk-all\lib\cmake\AWSSDK\AWSSDKConfig.cmake:
include(${CMAKE_CURRENT_LIST_DIR}/AWSSDKConfigVersion.cmake)
Cmake runs on my project without any incident from AWS after that change.
Additional Information/Context
No response
AWS CPP SDK version used
1.11.99
Compiler and Version used
VS 2022
Operating System and version
Windows 10
The text was updated successfully, but these errors were encountered: