You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmake: Support being included with add_subdirectory
Make changes needed to make the cmake project work well when it is not the top
level project and has been included with add_subdirectory:
- Avoid defining "tests" and "check" targets when project is not at the top
level to avoid clashes. Add new "mptests" and "mpcheck" alternatives instead.
- Rename "example" target to "mpexamples"
- Rename "util" target to "mputil"
- Export MP_INCLUDE_DIR variable to parent scope so target_capnp_sources()
function can work well there.
- Replace uses of CMAKE_SOURCE_DIR with CMAKE_CURRENT_SOURCE_DIR
- Reset INCLUDE_DIRECTORIES property so include_directories calls in the parent
project do not affect this project. This was causing errors because the
bitcoin core build was adding global include directories and causing its init.h
file to take precedence over local one.
0 commit comments