AWSSDK with CMake and find_package on Windows #3153
-
Hello AWS,
I have built the parts of the library that I'm interested in and have installed them to a directory on the Windows 10 machine. Here's how I did that:
Note1 I've also tried this outside of Cygwin in a Visual Studio Command x64 Prompt and get the same errors.
This build happily and installs to the required location. The installation folder looks like this:
NOTE: I've also built the Release version of the libraries in the same manner but for Release. Not shown above for brevity. I have a very simple application with a CMakeLists.txt file containing the following:
The configure step ALWAYS fails no matter what I try and I just cannot figure out why. I appreciate some help:
This fails with this
Full configure log here: I know it's a lot to ask but I am out of ideas as I've tried every combination of arguments I can think of and have spent what feels like ages examining the cmake files. Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Some observations, in \aws-sdk-cpp-1.11.400\lib\cmake\AWSSDK\AWSSDKConfig.cmake line 135: At this point LIB_SEARCH_PREFIX is always empty. It's not set anywhere so far as I can tell. Even if I fix the above to what I think they should be then the
I can't be the only one trying to do this on Windows. Has anyone had any success? I've got it all working on Linux without hassle. If anyone does have it working can you share how the AWSSDK is installed on your system? And perhaps the arguments you supply to cmake. Any help much appreciated. |
Beta Was this translation helpful? Give feedback.
-
OK I've given up trying to work this out and as there's been no response I've crafted the following which does at least seem to work. I'll post it here for feedback and in the hope someone else finds it useful:
|
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
OK I've given up trying to work this out and as there's been no response I've crafted the following which does at least seem to work. I'll post it here for feedback and in the hope someone else finds it useful: