The top-level CMakeLists.txt is setting CMAKE_MODULE_PATH based on CMAKE_SOURCE_DIR. This causes failure to find the CMake modules when Lucene++ is included as a submodule in another project.
This commit fixes the definition of CMAKE_MODULE_PATH by using CMAKE_CURRENT_SOURCE_DIR instead.
Note that everywhere else in CMakeLists.txt, the correct variable (CMAKE_CURRENT_SOURCE_DIR) is used already.
The top-level
CMakeLists.txt
is settingCMAKE_MODULE_PATH
based onCMAKE_SOURCE_DIR
. This causes failure to find the CMake modules when Lucene++ is included as a submodule in another project.This commit fixes the definition of
CMAKE_MODULE_PATH
by usingCMAKE_CURRENT_SOURCE_DIR
instead.Note that everywhere else in
CMakeLists.txt
, the correct variable (CMAKE_CURRENT_SOURCE_DIR
) is used already.