diff options
author | Galen Guyer <galen@galenguyer.com> | 2022-11-29 15:38:57 -0500 |
---|---|---|
committer | Galen Guyer <galen@galenguyer.com> | 2022-12-05 13:31:15 -0500 |
commit | 7152185734f955db6c50bac46f30374dbe2f855d (patch) | |
tree | eba0197fc82e6f160a23d54876e98cc5f59447a4 | |
parent | ad6cf8a05758f7f92ca19bd0a6b20188ab82a6ae (diff) |
Properly find OsmoSDR include dirsdevelop
The CMake file to find the include dirs for
gnuradio-osmosdr checks the wrong pkg module name,
and has trailing paths appended.
-rw-r--r-- | cmake/Modules/FindGnuradioOsmosdr.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmake/Modules/FindGnuradioOsmosdr.cmake b/cmake/Modules/FindGnuradioOsmosdr.cmake index bd9ef994..f758fd01 100644 --- a/cmake/Modules/FindGnuradioOsmosdr.cmake +++ b/cmake/Modules/FindGnuradioOsmosdr.cmake @@ -1,4 +1,4 @@ -PKG_CHECK_MODULES(GNURADIO_OSMOSDR gnuradio-osmosdr) +PKG_CHECK_MODULES(PC_GNURADIO_OSMOSDR gnuradio-osmosdr) FIND_PATH( GNURADIO_OSMOSDR_INCLUDE_DIRS @@ -6,9 +6,9 @@ FIND_PATH( HINTS $ENV{GNURADIO_OSMOSDR_DIR}/include ${GNURADIO_OSMOSDR_INCLUDEDIR} ${GNURADIO_OSMOSDR_INCLUDE_DIRS} - ${CMAKE_INSTALL_PREFIX}/include/osmosdr - PATHS /usr/local/include/osmosdr - /usr/include/osmosdr + ${CMAKE_INSTALL_PREFIX}/include + PATHS /usr/local/include + /usr/include /opt/local/include ) |