[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 02/06: cmake: fix setting and usage of CMAK
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 02/06: cmake: fix setting and usage of CMAKE_MODULES_DIR |
Date: |
Fri, 29 Aug 2014 17:21:25 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit 43a990f9495827c9fcfd6d6220dc7dab17415b66
Author: Michael Dickens <address@hidden>
Date: Tue Aug 26 11:50:23 2014 -0400
cmake: fix setting and usage of CMAKE_MODULES_DIR
---
CMakeLists.txt | 4 ++--
volk/CMakeLists.txt | 7 ++++++-
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 60efb20..131be69 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -364,7 +364,7 @@ SET(cmake_configs
)
if(NOT CMAKE_MODULES_DIR)
- set(CMAKE_MODULES_DIR lib${LIB_SUFFIX}/cmake/gnuradio)
+ set(CMAKE_MODULES_DIR lib${LIB_SUFFIX}/cmake)
endif(NOT CMAKE_MODULES_DIR)
# Install all other cmake files into same directory
@@ -375,7 +375,7 @@ list(REMOVE_ITEM cmake_others
install(
FILES ${cmake_configs} ${cmake_others}
- DESTINATION ${CMAKE_MODULES_DIR}
+ DESTINATION ${CMAKE_MODULES_DIR}/gnuradio
COMPONENT "runtime_devel"
)
diff --git a/volk/CMakeLists.txt b/volk/CMakeLists.txt
index 66789e4..efde601 100644
--- a/volk/CMakeLists.txt
+++ b/volk/CMakeLists.txt
@@ -135,9 +135,14 @@ install(FILES
########################################################################
# Install cmake search routine for external use
########################################################################
+
+if(NOT CMAKE_MODULES_DIR)
+ set(CMAKE_MODULES_DIR lib${LIB_SUFFIX}/cmake)
+endif(NOT CMAKE_MODULES_DIR)
+
install(
FILES ${CMAKE_CURRENT_SOURCE_DIR}/cmake/VolkConfig.cmake
- DESTINATION lib${LIB_SUFFIX}/cmake/volk/
+ DESTINATION ${CMAKE_MODULES_DIR}/volk
COMPONENT "volk_devel"
)
- [Commit-gnuradio] [gnuradio] branch master updated (1c9377b -> 4eb84b1), git, 2014/08/29
- [Commit-gnuradio] [gnuradio] 02/06: cmake: fix setting and usage of CMAKE_MODULES_DIR,
git <=
- [Commit-gnuradio] [gnuradio] 04/06: cmake: on APPLE only, add defaults for rpath and install name info for libraries, git, 2014/08/29
- [Commit-gnuradio] [gnuradio] 01/06: cmake: fix FindUHD.cmake to work better wit CMake 2.6, and in general., git, 2014/08/29
- [Commit-gnuradio] [gnuradio] 05/06: Merge remote-tracking branch 'michaelld/refix_findUHD', git, 2014/08/29
- [Commit-gnuradio] [gnuradio] 03/06: cmake: whitespace only, git, 2014/08/29
- [Commit-gnuradio] [gnuradio] 06/06: Merge remote-tracking branch 'michaelld/cmake_fixes', git, 2014/08/29