From 0bc846c34c05f736a9e5a6f800129fb145a52cf4 Mon Sep 17 00:00:00 2001 From: Hoernchen Date: Tue, 10 Apr 2012 01:23:48 +0200 Subject: make win32 build actually work Signed-off-by: Steve Markgraf --- src/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8ea53db..ffb0927 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -47,7 +47,7 @@ target_link_libraries(rtlsdr_static ${LIBUSB_LIBRARIES} ) -set_target_properties(rtlsdr_static PROPERTIES DEFINE_SYMBOL "rtlsdr_STATIC") +set_property(TARGET rtlsdr_static APPEND PROPERTY COMPILE_DEFINITIONS "rtlsdr_STATIC" ) if(NOT WIN32) # Force same library filename for static and shared variants of the library @@ -63,6 +63,9 @@ target_link_libraries(rtl_sdr rtlsdr_static ${CMAKE_THREAD_LIBS_INIT} ) +if(WIN32) +set_property(TARGET rtl_sdr APPEND PROPERTY COMPILE_DEFINITIONS "rtlsdr_STATIC" ) +endif() ######################################################################## # Install built library files & utilities ######################################################################## -- cgit v1.3.1