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

Wrong source file discovery in CMakeLists #100

Closed
redagito opened this issue Jan 15, 2016 · 1 comment
Closed

Wrong source file discovery in CMakeLists #100

redagito opened this issue Jan 15, 2016 · 1 comment

Comments

@redagito
Copy link
Contributor

The CMakeLists.txt file uses the following lines to collect all relevant source files

set(NANA_SOURCE_DIR ${CMAKE_SOURCE_DIR}/source)
set(NANA_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/include)

Which causes major problems when using Nana as a sub project in cmake.
The lines should be changed to

set(NANA_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/source)
set(NANA_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)

@cnjinhao
Copy link
Owner

Thank you for fixing this issue.

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

No branches or pull requests

2 participants