diff options
author | Hoernchen <la@tfc-server.de> | 2012-04-10 01:23:48 +0200 |
---|---|---|
committer | Steve Markgraf <steve@steve-m.de> | 2012-04-10 01:25:00 +0200 |
commit | 0bc846c34c05f736a9e5a6f800129fb145a52cf4 (patch) | |
tree | 3aad5500011de6b2a745797e7a50295be34607d5 /src/CMakeLists.txt | |
parent | 65ac467941527ed4777bf8f9833d0de95f754b64 (diff) |
make win32 build actually work
Signed-off-by: Steve Markgraf <steve@steve-m.de>
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
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 ######################################################################## |