From 1c564219cc8df08f9e44861cdfdfef91e5e6a7fc Mon Sep 17 00:00:00 2001
From: Michael Dickens <michael.dickens@ettus.com>
Date: Wed, 24 Sep 2014 13:55:05 -0400
Subject: cmake: modtool: allow the use of a MODULES_DIR to specify where cmake
 modules are installed.

---
 gr-utils/python/modtool/gr-newmod/CMakeLists.txt | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'gr-utils/python/modtool/gr-newmod')

diff --git a/gr-utils/python/modtool/gr-newmod/CMakeLists.txt b/gr-utils/python/modtool/gr-newmod/CMakeLists.txt
index 677144a984..9f5060e57d 100644
--- a/gr-utils/python/modtool/gr-newmod/CMakeLists.txt
+++ b/gr-utils/python/modtool/gr-newmod/CMakeLists.txt
@@ -155,6 +155,10 @@ add_subdirectory(docs)
 ########################################################################
 # Install cmake search helper for this library
 ########################################################################
+if(NOT CMAKE_MODULES_DIR)
+  set(CMAKE_MODULES_DIR lib${LIB_SUFFIX}/cmake)
+endif(NOT CMAKE_MODULES_DIR)
+
 install(FILES cmake/Modules/howtoConfig.cmake
-    DESTINATION lib/cmake/howto
+    DESTINATION ${CMAKE_MODULES_DIR}/howto
 )
-- 
cgit v1.2.3