diff options
author | Michael Dickens <michael.dickens@ettus.com> | 2014-09-24 13:55:05 -0400 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2014-10-13 13:41:00 -0700 |
commit | 1c564219cc8df08f9e44861cdfdfef91e5e6a7fc (patch) | |
tree | 22f6ddfa25113e9ed2e2d8bc96206c796fc0e798 /gr-utils/python/modtool/gr-newmod | |
parent | 070887e47a0822771d0addef14e81b803f2a5093 (diff) |
cmake: modtool: allow the use of a MODULES_DIR to specify where cmake modules are installed.
Diffstat (limited to 'gr-utils/python/modtool/gr-newmod')
-rw-r--r-- | gr-utils/python/modtool/gr-newmod/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
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 ) |