Skip to content

cmake: fix namespace and include dir#74

Merged
brofield merged 1 commit into
brofield:masterfrom
abouvier:cmake-fix
Jan 2, 2024
Merged

cmake: fix namespace and include dir#74
brofield merged 1 commit into
brofield:masterfrom
abouvier:cmake-fix

Conversation

@abouvier
Copy link
Copy Markdown
Contributor

@abouvier abouvier commented Jan 2, 2024

The Makefile installs the header in /usr/include, not in a subdirectory.

Also allow disabling the tests with the BUILD_TESTING option.

@brofield
Copy link
Copy Markdown
Owner

brofield commented Jan 2, 2024

This seems reasonable. In regards the change to include(CTest) from enable_testing(). Is one better than the other? There doesn't appear to be a canonical answer on the web that I can find.

@abouvier
Copy link
Copy Markdown
Contributor Author

abouvier commented Jan 2, 2024

CTest creates an option (ON by default) to disable the tests. enable_testing() cannot be disabled in a top level project with the current code.

@brofield
Copy link
Copy Markdown
Owner

brofield commented Jan 2, 2024

Ok. Makes sense. Thanks for your contribution.

@brofield brofield merged commit aeacf86 into brofield:master Jan 2, 2024
@abouvier abouvier deleted the cmake-fix branch January 2, 2024 08:02
archlinux-github pushed a commit to archlinux/aur that referenced this pull request Jan 2, 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.

2 participants