mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-06-25 12:47:50 +02:00
Fixed issues compiling on Windows with MSVC, CMake and NMake (#61)
When trying to build a simple program which uses librtlsdr as a subproject on Windows, CMake reported several problems which were solved by: - Added complete name of libusb in FindLibUSB module. - Replaced CMAKE_SOURCE_DIR to PROJECT_SOURCE_DIR in src/CMakeLists.txt. - Replaced header file <afxres.h> in src/rtlsdr.rc.in (only present when windows MFC is installed) by <windows.h> which defines the same constants.
This commit is contained in:
@ -9,7 +9,7 @@ if(NOT LIBUSB_FOUND)
|
||||
)
|
||||
|
||||
#standard library name for libusb-1.0
|
||||
set(libusb1_library_names usb-1.0)
|
||||
set(libusb1_library_names usb-1.0 libusb-1.0)
|
||||
|
||||
#libusb-1.0 compatible library on freebsd
|
||||
if((CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") OR (CMAKE_SYSTEM_NAME STREQUAL "kFreeBSD"))
|
||||
|
Reference in New Issue
Block a user