A few CMake improvements by marcomagdy · Pull Request #68 · awslabs/aws-lambda-cpp · GitHub
Skip to content

A few CMake improvements#68

Merged
marcomagdy merged 1 commit into
clangtidy9-fixfrom
better-cmake
Dec 3, 2019
Merged

A few CMake improvements#68
marcomagdy merged 1 commit into
clangtidy9-fixfrom
better-cmake

Conversation

@marcomagdy

Copy link
Copy Markdown
Contributor
  • Set the SONAME on the library to generate correct symlinks
  • Set visibility of inline functions to hidden [1]
  • Use the built-in LTO detection mechanism instead of rolling my own (requires CMake 3.9)

[1] I didn't use CMAKE_CXX_VISIBILITY_PRESET and CMAKE_VISIBILITY_INLINES_HIDDEN because IMO they obscure the compiler flags and this library only builds/runs on linux (and Windows has visibility hidden by default anyways). Let me know if you disagree, I don't have strong opinions about this.

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

- Set the SONAME on the library to generate correct symlinks
- Set visibility of inline functions to hidden (didn't use CMake since
this library is linux only)
- Use the built-in LTO detection mechanism instead of rolling my own
@marcomagdy marcomagdy merged commit febb833 into clangtidy9-fix Dec 3, 2019
@marcomagdy marcomagdy deleted the better-cmake branch December 3, 2019 18:32
marcomagdy added a commit that referenced this pull request Dec 3, 2019
- Set the SONAME on the library to generate correct symlinks
- Set visibility of inline functions to hidden (didn't use CMake since
this library is linux only)
- Use the built-in LTO detection mechanism instead of rolling my own
marcomagdy added a commit that referenced this pull request Dec 3, 2019
bmoffatt added a commit that referenced this pull request Feb 25, 2020
Update README.md to reflect newer CMake dependency for in #68
marcomagdy pushed a commit that referenced this pull request Feb 25, 2020
Update README.md to reflect newer CMake dependency for in #68
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.

2 participants