From 980abca0b537bb50e7977cb810396be0312278ef Mon Sep 17 00:00:00 2001 From: Michael Ossmann Date: Sun, 29 Jan 2017 17:29:45 -0700 Subject: [PATCH] Fixed cmake bug that prevented hackrf_sweep from being built. --- host/hackrf-tools/src/CMakeLists.txt | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/host/hackrf-tools/src/CMakeLists.txt b/host/hackrf-tools/src/CMakeLists.txt index d8f602c1..00a173fc 100644 --- a/host/hackrf-tools/src/CMakeLists.txt +++ b/host/hackrf-tools/src/CMakeLists.txt @@ -25,16 +25,6 @@ set(INSTALL_DEFAULT_BINDIR "bin" CACHE STRING "Appended to CMAKE_INSTALL_PREFIX" INCLUDE(FindPkgConfig) -if(MSVC) - add_library(libgetopt_static STATIC - ../getopt/getopt.c - ) -else() - pkg_check_modules(FFTW REQUIRED fftw3f) - LIST(APPEND TOOLS hackrf_sweep) - LIST(APPEND TOOLS_LINK_LIBS m fftw3f) -endif() - SET(TOOLS hackrf_max2837 hackrf_si5351c @@ -46,6 +36,16 @@ SET(TOOLS hackrf_operacake ) +if(MSVC) + add_library(libgetopt_static STATIC + ../getopt/getopt.c + ) +else() + pkg_check_modules(FFTW REQUIRED fftw3f) + LIST(APPEND TOOLS hackrf_sweep) + LIST(APPEND TOOLS_LINK_LIBS m fftw3f) +endif() + if(NOT libhackrf_SOURCE_DIR) include_directories(${LIBHACKRF_INCLUDE_DIR}) LIST(APPEND TOOLS_LINK_LIBS ${LIBHACKRF_LIBRARIES})