Skip to content

Conversation

@JonathanHenson
Copy link
Contributor

This is ssooooooo dumb, but dems tha rules.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@JonathanHenson JonathanHenson requested a review from a team January 5, 2019 03:31
@JonathanHenson JonathanHenson merged commit b4d4bc7 into master Jan 7, 2019
@JonathanHenson JonathanHenson deleted the fix_find_package_on_RHEL branch January 7, 2019 17:32
@singku
Copy link
Contributor

singku commented Jan 9, 2019

Don't know why, but It turns out CPP SDK works correctly finding c-common in lib64 without this patch.

@JonathanHenson
Copy link
Contributor Author

It’s likely only a problem for C compilers, and it depends on cmake version. But event stream will need it regardless even if it’s fine for cpp sdk

graebm added a commit that referenced this pull request Dec 21, 2024
…es like LIBRARY_DIRECTORY. Since every platform can do `include(GnuInstallDirs)`, it's fine to rely on the variables it defines, so let's just use them explicitly.

- Explicitly include(GNUInstallDirs) in every CMakeLists.txt that uses the vars it defines (e.g. CMAKE_INSTALL_LIBDIR). I could get away omitting this include, since the AwsSharedLibsSetup.cmake helper script also pulls it in, but it seems like good practice.
- Remove custom code that was setting FIND_LIBRARY_USE_LIB64_PATHS. In the PR that introduced this #226 the reviewer called out that this probably wasn't necessary. ChatGPT agrees. CMake is supposed to figure this out automatically. And if it's not working, then it's a weird cross-compile situation where the person building should be setting this to fix things. It shouldn't be up to every library on earth to do this hack.

So, this PR started with me thinking that, if we're getting all the shared scripts via `find_package(aws-c-common)`, and the shared scripts are where FIND_LIBRARY_USE_LIB64_PATHS gets customized, but we need to customize FIND_LIBRARY_USE_LIB64_PATHS before we can do `find_package(aws-c-common)`, then ALL projects need to copy/paste the code that customizes FIND_LIBRARY_USE_LIB64_PATHS before doing `find_package(aws-c-common)`. So I set down that path. Then when writing the commit message I was like  ... wait a minute this is ridiculous. So did some more research, and learned the FIND_LIBRARY_USE_LIB64_PATHS stuff was probably unnecessary.
@graebm graebm mentioned this pull request Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants