Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Append cmake subdir to CMAKE_MODULE_PATH
It is important to append our own cmake module directory to the project wide CMAKE_MODULE_PATH. Normally CMAKE_MODULE_PATH is empty when project is started because the default module path is hard coded, e.g. /usr/share/cmake/Modules. But if this project is included into another project, the surrounding project might want to override how we find_package() our dependendies. Changed "${CMAKE_CURRENT_SOURCE_DIR}" to "${CMAKE_CURRENT_LIST_DIR}" because while current source can change, the cmake sub directory will always stay adjacent to this CMakeLists.txt file. Signed-off-by: Mikko Johannes Koivunalho <[email protected]>
- Loading branch information