pothosware / SoapySDR

Vendor and platform neutral SDR support library.

Home Page:https://github.com/pothosware/SoapySDR/wiki

Repository from Github https://github.compothosware/SoapySDRRepository from Github https://github.compothosware/SoapySDR

[windows] cmake file is not respecting compile option: -DENABLE_PYTHON2=OFF

eabase opened this issue · comments

When setting up compiler with:

cmake -S .. -B . -DENABLE_PYTHON2=OFF 

The used CMake file:
https://github.com/pothosware/SoapySDR/blob/master/swig/python/CMakeLists.txt

Ignores the option and keeps looking for Python2.

https://github.com/pothosware/SoapySDR/blob/master/swig/python/CMakeLists.txt#L56-L67

  • Py2 Check should be disabled
  • The user should be informed that Py2 flag was disabled/disabled
  • ..or Py2 was not found, if enabled

Checking for Python versions is done to configure the cmake_dependent_options.

A summary of configured options is displayed at the end of CMake output, e.g.

-- ######################################################
-- ## SoapySDR enabled features
-- ######################################################
--
...

-- ######################################################
-- ## SoapySDR disabled features
-- ######################################################
--
...
 * Python2, Python2 bindings v
...

Follow up with more info if you really have Python 2 available, configured OFF but are not seeing it disabled.