Skip to content

Tweak cmake#78

Merged
jermp merged 1 commit into
jermp:devfrom
ByteHamster-etc:cmake-tweaks
Dec 6, 2024
Merged

Tweak cmake#78
jermp merged 1 commit into
jermp:devfrom
ByteHamster-etc:cmake-tweaks

Conversation

@ByteHamster

Copy link
Copy Markdown
Contributor
  • When setting the include path to the main folder, projects depending on pthash would have stuff like README.md in their include paths. Also, using absolute paths (instead of include directories) causes problems when using pthash as a dependency, especially when running into diamond dependencies.
  • Explicitly set compiler warnings only when compiling PTHash itself. Otherwise these get propagated to projects depending on it.
  • With modern cmake, there is no need to specify "-pthread". Cmake does that for us if necessary and supported by the OS.

- When setting the include path to the main folder, projects depending
  on pthash would have stuff like `README.md` in their include paths.
  Also, using absolute paths (instead of include directories) causes
  problems when using pthash as a dependency, especially when running
  into diamond dependencies.
- Explicitly set compiler warnings only when compiling PTHash itself.
  Otherwise these get propagated to projects depending on it.
- With modern cmake, there is no need to specify "-pthread". Cmake does
  that for us if necessary and supported by the OS.
@jermp

jermp commented Dec 6, 2024

Copy link
Copy Markdown
Owner

Nice simplifications, thanks!

@jermp
jermp merged commit 99e7c67 into jermp:dev Dec 6, 2024
@ByteHamster
ByteHamster deleted the cmake-tweaks branch December 6, 2024 09:42
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