Browse Source

Change default to ENABLE_RTLSDR=ON

Christian W. Zuckschwerdt 10 months ago
parent
commit
7dec65ee59
3 changed files with 7 additions and 2 deletions
  1. 1 1
      .travis.yml
  2. 5 0
      BUILDING.md
  3. 1 1
      CMakeLists.txt

+ 1 - 1
.travis.yml

@@ -13,7 +13,7 @@ matrix:
         - export PATH=$MSBUILD_PATH:$PATH
         - mkdir build
         - cd build
-        - cmake -G "Visual Studio 15 2017 Win64" ..
+        - cmake -DENABLE_RTLSDR=OFF -G "Visual Studio 15 2017 Win64" ..
         - MSBuild.exe rtl433.sln
 # Test Visual Studio 2017 (MSBuild), disabled because it assumes RTLSDR
 #    - os: windows

+ 5 - 0
BUILDING.md

@@ -54,6 +54,11 @@ Installation using CMake:
     make
     make install
 
+Use CMake with `-DENABLE_SOAPYSDR=ON` (default: `AUTO`) to require SoapySDR, use `-DENABLE_RTLSDR=OFF` (default: `ON`) to disable RTL-SDR if needed.
+E.g. use:
+
+    cmake -DENABLE_SOAPYSDR=ON ..
+
 ### Autotools (Autoconf, Automake)
 
 Installation using Autotools:

+ 1 - 1
CMakeLists.txt

@@ -86,7 +86,7 @@ endif()
 ########################################################################
 # Find build dependencies
 ########################################################################
-set(ENABLE_RTLSDR AUTO CACHE STRING "Enable RTL-SDR (lbrtlsdr) driver support")
+set(ENABLE_RTLSDR ON CACHE STRING "Enable RTL-SDR (lbrtlsdr) driver support")
 set_property(CACHE ENABLE_RTLSDR PROPERTY STRINGS AUTO ON OFF)
 if(ENABLE_RTLSDR) # AUTO / ON