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/ECMFindModuleHelpersStub.cmake | 1 + 1 file changed, 1 insertion(+) create mode 100644 find-modules/ECMFindModuleHelpersStub.cmake (limited to 'find-modules/ECMFindModuleHelpersStub.cmake') diff --git a/find-modules/ECMFindModuleHelpersStub.cmake b/find-modules/ECMFindModuleHelpersStub.cmake new file mode 100644 index 00000000..bb8c9a62 --- /dev/null +++ b/find-modules/ECMFindModuleHelpersStub.cmake @@ -0,0 +1 @@ +include(${CMAKE_CURRENT_LIST_DIR}/../modules/ECMFindModuleHelpers.cmake) -- cgit v1.2.1