summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block-cmake/cmake/Modules/FindGruel.cmake
diff options
context:
space:
mode:
authorJohnathan Corgan2012-02-05 10:27:47 -0800
committerJohnathan Corgan2012-02-05 10:42:41 -0800
commit651301f7c0dc3ea58d2b770baeb8de0f42ceb609 (patch)
treef74e505705bc003f9fe96d6e98c6224731055f6e /gr-howto-write-a-block-cmake/cmake/Modules/FindGruel.cmake
parent2b87c2a7c11c4ee20b8f1356f39537043234c1b4 (diff)
downloadgnuradio-651301f7c0dc3ea58d2b770baeb8de0f42ceb609.tar.gz
gnuradio-651301f7c0dc3ea58d2b770baeb8de0f42ceb609.tar.bz2
gnuradio-651301f7c0dc3ea58d2b770baeb8de0f42ceb609.zip
howto: various fixes cmake, cleanup
* Fixed include dir variable, now works when gnuradio-core in custom prefix * Removed QUIET option, only works for cmake >=2.8.2, Ubuntu LTS has 2.8.0 * Fixed library name for gruel search
Diffstat (limited to 'gr-howto-write-a-block-cmake/cmake/Modules/FindGruel.cmake')
-rw-r--r--gr-howto-write-a-block-cmake/cmake/Modules/FindGruel.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-howto-write-a-block-cmake/cmake/Modules/FindGruel.cmake b/gr-howto-write-a-block-cmake/cmake/Modules/FindGruel.cmake
index 56b8b1773..58dff7044 100644
--- a/gr-howto-write-a-block-cmake/cmake/Modules/FindGruel.cmake
+++ b/gr-howto-write-a-block-cmake/cmake/Modules/FindGruel.cmake
@@ -1,11 +1,11 @@
INCLUDE(FindPkgConfig)
-PKG_CHECK_MODULES(PC_GRUEL QUIET gnuradio-core)
+PKG_CHECK_MODULES(PC_GRUEL gruel)
FIND_PATH(
GRUEL_INCLUDE_DIRS
NAMES gruel/attributes.h
HINTS $ENV{GRUEL_DIR}/include
- ${PC_GRUEL_INCLUDE_DIR}
+ ${PC_GRUEL_INCLUDEDIR}
PATHS /usr/local/include
/usr/include
)