diff options
author | Josh Blum <josh@joshknows.com> | 2010-12-26 00:56:13 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-12-26 00:56:13 -0800 |
commit | 2dfec0af4a159b4f886180a0f7448ce37a75aac1 (patch) | |
tree | 84fe3d1faefa989e1f8b09f1dface8e5b2079428 /host | |
parent | 8f93121987af42d8b049d29cd8ea101a6306fa87 (diff) | |
download | uhd-2dfec0af4a159b4f886180a0f7448ce37a75aac1.tar.gz uhd-2dfec0af4a159b4f886180a0f7448ce37a75aac1.tar.bz2 uhd-2dfec0af4a159b4f886180a0f7448ce37a75aac1.zip |
usrp-e100: added check for linux when configuring
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/usrp/usrp_e100/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp_e100/CMakeLists.txt b/host/lib/usrp/usrp_e100/CMakeLists.txt index 5d8a9791d..c32dd87f8 100644 --- a/host/lib/usrp/usrp_e100/CMakeLists.txt +++ b/host/lib/usrp/usrp_e100/CMakeLists.txt @@ -22,7 +22,11 @@ ######################################################################## # Conditionally configure the USRP-E100 support ######################################################################## -LIBUHD_REGISTER_COMPONENT("USRP-E100" ENABLE_USRP_E100 OFF "ENABLE_LIBUHD" ON) +IF(CMAKE_SYSTEM_NAME STREQUAL "Linux") + SET(LINUX_TARGET TRUE) +ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Linux") + +LIBUHD_REGISTER_COMPONENT("USRP-E100" ENABLE_USRP_E100 OFF "ENABLE_LIBUHD;LINUX_TARGET" OFF) IF(ENABLE_USRP_E100) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include) |