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

Fix CMakeLists.txt for the use as a subdirectory in another project #103

Merged
merged 1 commit into from
Feb 10, 2021

Conversation

lrittel
Copy link
Contributor

@lrittel lrittel commented Feb 9, 2021

Replaced ${CMAKE_SOURCE_DIR} with ${CMAKE_CURRENT_SOURCE_DIR}.

This eliminates the assumption that crow's source directory is the source root and therefore fixes the building process when crow is built in a subdirectory of another project where this assumption does not hold.

I've tested the change on Linux and it does not seem to break anything.

Replaced `${CMAKE_SOURCE_DIR}` with `${CMAKE_CURRENT_SOURCE_DIR}`.
@The-EDev The-EDev merged commit 6cb131c into CrowCpp:master Feb 10, 2021
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