diff --git a/sdrplay_source/CMakeLists.txt b/sdrplay_source/CMakeLists.txt index 5df0aaf0..0d776b43 100644 --- a/sdrplay_source/CMakeLists.txt +++ b/sdrplay_source/CMakeLists.txt @@ -24,11 +24,7 @@ if (MSVC) else (MSVC) find_package(PkgConfig) - pkg_check_modules(LIBSDRPLAY REQUIRED libsdrplay_api) - - target_include_directories(sdrplay_source PUBLIC ${LIBSDRPLAY_INCLUDE_DIRS}) - target_link_directories(sdrplay_source PUBLIC ${LIBSDRPLAY_LIBRARY_DIRS}) - target_link_libraries(sdrplay_source PUBLIC ${LIBSDRPLAY_LIBRARIES}) + target_link_libraries(sdrplay_source sdrplay_api) endif (MSVC) # Install directives