Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer to use CMAKE_CURRENT_SOURCE_DIR instead of CMAKE_SOURCE_DIR for includes #16

Closed
abdes opened this issue Aug 22, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@abdes
Copy link
Owner

abdes commented Aug 22, 2022

This has the benefit of working better and more reliably when the project is included in another master project. We can guarantee that the includes still come from the sub-project as expected.

# List of directories specifying a search path for CMake modules to be loaded by
# the the include() or find_package() commands before checking the default
# modules that come with CMake.
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
@abdes abdes self-assigned this Aug 22, 2022
@abdes abdes added the bug Something isn't working label Aug 22, 2022
@abdes abdes closed this as completed in 4ac6928 Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant