Closed leonsal closed 4 years ago
Thanks for the feedback could you create a pull request with the modifications ? (like that you will contribute to the project)
Fixed with https://github.com/airspy/airspyone_host/pull/67 Thanks for your contribution
Hi,
When compiling for Windows 10 using MSVC (2019) and CMake, the compiler prints warnings that it is ignoring an unrecognized option "-O3" for libairspy and "-O2" for airspy-tools. But more importantly CMake is not passing the correct optimization options to MSVC (/O2 /Ob2), so the resulting binaries are not optimized.
This issue can be solved by removing line:
set(CMAKE_C_FLAGS_RELEASE "-O3")
from libairspy/CMakeLists.txt andset(CMAKE_C_FLAGS_RELEASE "-O2")
from airspy-tools/CMakeLists.txtCMAKE_BUILD_TYPE=Release
already sets "-O3" for gcc/clang and sets "/O2 /Ob2" for msvc. This implies, though, that airspy-tools will also be compiled with -O3 for gcc/clang.Regards.