luceneplusplus / LucenePlusPlus

Lucene++ is an up to date C++ port of the popular Java Lucene library, a high-performance, full-featured text search engine.
luceneplusplus@googlegroups.com
Other
743 stars 235 forks source link

Use CMAKE_CURRENT_SOURCE_DIR for CMAKE_MODULE_PATH #133

Closed revl closed 4 years ago

revl commented 4 years ago

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.

alanw commented 4 years ago

Thank you Damon! 👍