[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 02/14: CMake: Fix search paths for the Volk
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 02/14: CMake: Fix search paths for the Volk submodule in GnuradioConfig.cmake |
Date: |
Mon, 30 May 2016 21:23:22 +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 1129f2f6131d1e926c0f38a5d2d5f04b4c9d50b7
Author: Paul Cercueil <address@hidden>
Date: Wed May 18 15:35:03 2016 +0200
CMake: Fix search paths for the Volk submodule in GnuradioConfig.cmake
GnuradioConfig.cmake allows to find Volk as a submodule of GNU Radio.
However, GNU Radio might have been built with an external libvolk; so,
GnuradioConfig.cmake should search Volk in the installation prefix of
GNU Radio, as well as in the installation prefix of the library.
Signed-off-by: Paul Cercueil <address@hidden>
---
CMakeLists.txt | 6 ++++++
cmake/Modules/GnuradioConfig.cmake.in | 2 ++
2 files changed, 8 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cbac0b5..232adb3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -323,6 +323,9 @@ if(NOT VOLK_FOUND)
set(VOLK_LIBRARIES volk)
+ set(VOLK_INSTALL_LIBRARY_DIR ${CMAKE_INSTALL_PREFIX}/lib)
+ set(VOLK_INSTALL_INCLUDE_DIR ${CMAKE_INSTALL_PREFIX}/include)
+
if(ENABLE_VOLK)
include(GrPackage)
@@ -344,6 +347,9 @@ if(NOT VOLK_FOUND)
else()
message(STATUS " An external VOLK has been found and will be used for
build.")
set(ENABLE_VOLK TRUE)
+
+ get_filename_component(VOLK_INSTALL_LIBRARY_DIR "${VOLK_LIBRARIES}"
DIRECTORY)
+ set(VOLK_INSTALL_INCLUDE_DIR ${VOLK_INCLUDE_DIRS})
endif(NOT VOLK_FOUND)
message(STATUS " Override with -DENABLE_INTERNAL_VOLK=ON/OFF")
diff --git a/cmake/Modules/GnuradioConfig.cmake.in
b/cmake/Modules/GnuradioConfig.cmake.in
index fb41a79..fc7499d 100644
--- a/cmake/Modules/GnuradioConfig.cmake.in
+++ b/cmake/Modules/GnuradioConfig.cmake.in
@@ -73,6 +73,7 @@ function(GR_MODULE EXTVAR PCNAME INCFILE LIBFILE)
PATHS /usr/local/include
/usr/include
"@CMAKE_INSTALL_PREFIX@/include"
+ "@VOLK_INSTALL_INCLUDE_DIR@"
)
# look for libs
@@ -89,6 +90,7 @@ function(GR_MODULE EXTVAR PCNAME INCFILE LIBFILE)
/usr/lib
/usr/lib64
"@CMAKE_INSTALL_PREFIX@/lib"
+ "@VOLK_INSTALL_LIBRARY_DIR@"
)
list(APPEND ${LIBVAR_NAME} ${${LIBVAR_NAME}_${libname}})
endforeach(libname)
- [Commit-gnuradio] [gnuradio] branch master updated (0e1b710 -> 0d32337), git, 2016/05/30
- [Commit-gnuradio] [gnuradio] 10/14: Merge remote-tracking branch 'osh/fixwarn', git, 2016/05/30
- [Commit-gnuradio] [gnuradio] 01/14: CMake: Generate GnuradioConfig.cmake with a hardcoded install path hint, git, 2016/05/30
- [Commit-gnuradio] [gnuradio] 13/14: Merge remote-tracking branch 'adi/fix_find_volk', git, 2016/05/30
- [Commit-gnuradio] [gnuradio] 02/14: CMake: Fix search paths for the Volk submodule in GnuradioConfig.cmake,
git <=
- [Commit-gnuradio] [gnuradio] 04/14: dtv: Fix usage of volk_32f_index_max*, first argument, to be uint16_t* as required by the Volk API., git, 2016/05/30
- [Commit-gnuradio] [gnuradio] 12/14: Merge remote-tracking branch 'stwunsch/master', git, 2016/05/30
- [Commit-gnuradio] [gnuradio] 05/14: set c/c++ standard in cmake so that we are not dependent on the default c/c++ standard set by the specific compiler., git, 2016/05/30
- [Commit-gnuradio] [gnuradio] 06/14: Merge branch 'maint', git, 2016/05/30
- [Commit-gnuradio] [gnuradio] 03/14: grc: hide comments of hidden variables, git, 2016/05/30
- [Commit-gnuradio] [gnuradio] 14/14: Merge branch 'maint', git, 2016/05/30
- [Commit-gnuradio] [gnuradio] 07/14: volk: updated to latest master b930d7f, git, 2016/05/30
- [Commit-gnuradio] [gnuradio] 09/14: Merge remote-tracking branch 'michaelld/fix_volk_max_index_uint16_t', git, 2016/05/30
- [Commit-gnuradio] [gnuradio] 11/14: Merge remote-tracking branch 'gnuradio-wg-grc/master_grcwg', git, 2016/05/30
- [Commit-gnuradio] [gnuradio] 08/14: blocks: fix angry min_xx_impl warningsx, git, 2016/05/30