Skip to content

Issues Building Project With Cmake and aws-sdk-cpp_DIR #406

@Skarlso

Description

@Skarlso

Hi.

So, I was following steps here:

https://aws.amazon.com/blogs/developer/using-cmake-exports-with-the-aws-sdk-for-c/

My project is a little bit more complex, with multiple project files, but it essentially boils down to these parts:

...
find_package(aws-sdk-cpp)

# Use the created library to link to the source.
add_executable(furnace $<TARGET_OBJECTS:furnace_object> furnace.cpp)

# I tried the blog post aws-cpp-sdk-core ( but maybe that's a typo? )
target_link_libraries(furnace aws-sdk-cpp-core)
...

And then calling this:

cd build
cmake –Daws-sdk-cpp_DIR="/Users/-...-/aws/aws-sdk-cpp-1.0.51/build/" ..

Also, I've built the project on osx. I used it previously, if I hardcoded all the path everywhere, which is less than ideal. So I know the library works fine.

What I'm getting when I'm running this is:

CMake Warning at furnace/CMakeLists.txt:8 (find_package):
  By not providing "Findaws-sdk-cpp.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "aws-sdk-cpp", but CMake did not find one.

  Could not find a package configuration file provided by "aws-sdk-cpp" with
  any of the following names:

    aws-sdk-cppConfig.cmake
    aws-sdk-cpp-config.cmake

  Add the installation prefix of "aws-sdk-cpp" to CMAKE_PREFIX_PATH or set
  "aws-sdk-cpp_DIR" to a directory containing one of the above files.  If
  "aws-sdk-cpp" provides a separate development package or SDK, be sure it
  has been installed.

The files it's looking for IS THERE.

The whole project can be located here => https://github.com/Skarlso/furnace

Any advice / help is very welcomed!

I'm building by hand. The operating system is OSX. And it's not an IOS project.

Thank you in advance.
Gergely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions