From bef4cdd905980b2c8a45a50e2201678c1e4e38af Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Sun, 20 Apr 2014 15:26:54 +0100 Subject: Add a stub for ECMFindModuleHelpers to the find-modules dir ECMUseFindModules allows find modules to be copied to a local directory. These find modules may use ECMFindModuleHelpers, but they will not be in the same relative location to ECMFindModuleHelpers.cmake and there is no guarantee that ECMFindModulesHelpers.cmake will be in the CMake module path. To solve this, we make sure there is always a stub file in the same directory as the find modules that includes the real ECMFindModuleHelpers.cmake. The one installed with ECM just includes "../modules/ECMFindModuleHelpers.cmake", while ecm_use_find_modules generates a stub that uses an absolute path. REVIEW 117658 --- find-modules/FindWayland.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'find-modules/FindWayland.cmake') diff --git a/find-modules/FindWayland.cmake b/find-modules/FindWayland.cmake index 79c93c81..11716f04 100644 --- a/find-modules/FindWayland.cmake +++ b/find-modules/FindWayland.cmake @@ -73,7 +73,7 @@ # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #============================================================================= -include(${CMAKE_CURRENT_LIST_DIR}/../modules/ECMFindModuleHelpers.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/ECMFindModuleHelpersStub.cmake) ecm_find_package_version_check(Wayland) -- cgit v1.2.1