diff options
author | Michael Dickens | 2012-03-13 09:14:52 -0700 |
---|---|---|
committer | Johnathan Corgan | 2012-03-13 09:14:52 -0700 |
commit | 85beb37cac923798fa0ea6f27a3413e174e43367 (patch) | |
tree | 4bfb38d6d618bb990222118200fb9735d230c174 /gr-fcd | |
parent | 704afafe874735a8b260870efb1ed11c2c85eff4 (diff) | |
download | gnuradio-85beb37cac923798fa0ea6f27a3413e174e43367.tar.gz gnuradio-85beb37cac923798fa0ea6f27a3413e174e43367.tar.bz2 gnuradio-85beb37cac923798fa0ea6f27a3413e174e43367.zip |
fcd: implement conditional build for MacOSX
Diffstat (limited to 'gr-fcd')
-rw-r--r-- | gr-fcd/lib/CMakeLists.txt | 5 | ||||
-rw-r--r-- | gr-fcd/lib/hid/CMakeLists.txt | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/gr-fcd/lib/CMakeLists.txt b/gr-fcd/lib/CMakeLists.txt index b41037d4a..ee28def04 100644 --- a/gr-fcd/lib/CMakeLists.txt +++ b/gr-fcd/lib/CMakeLists.txt @@ -48,7 +48,10 @@ list(APPEND fcd_libs ${Boost_LIBRARIES} ) -if(NOT WIN32 AND NOT MACOSX) +if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + FIND_LIBRARY(IOKIT_LIBRARY IOKit) + list(APPEND fcd_libs ${IOKIT_LIBRARY}) +elseif (NOT WIN32) list(APPEND fcd_libs ${LIBUSB_LIBRARIES} ) diff --git a/gr-fcd/lib/hid/CMakeLists.txt b/gr-fcd/lib/hid/CMakeLists.txt index d18e977c2..db335cc93 100644 --- a/gr-fcd/lib/hid/CMakeLists.txt +++ b/gr-fcd/lib/hid/CMakeLists.txt @@ -27,7 +27,7 @@ set(hid_sources) if(WIN32) list(APPEND hid_sources ${CMAKE_CURRENT_SOURCE_DIR}/hidwin.c) -elseif(MACOSX) +elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") list(APPEND hid_sources ${CMAKE_CURRENT_SOURCE_DIR}/hidmac.c) else() list(APPEND hid_sources ${CMAKE_CURRENT_SOURCE_DIR}/hid-libusb.c) |