From 3f1d0fb1bd597ea41d52828a9380fccdc06314bf Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 16 Nov 2015 15:21:42 -0800 Subject: cmake: Register components earlier All device-specific CMake components are now registered in one place, before the host/lib/ subdirs are sourced. This way, there are no cyclic dependencies. This solves the issue where ENABLE_X300=Off could disable USB, but preserves the fix where ENABLE_X300=Off would still build some X300 codes. --- host/lib/usrp/b100/CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) (limited to 'host/lib/usrp/b100') diff --git a/host/lib/usrp/b100/CMakeLists.txt b/host/lib/usrp/b100/CMakeLists.txt index 1558cd974..66129458c 100644 --- a/host/lib/usrp/b100/CMakeLists.txt +++ b/host/lib/usrp/b100/CMakeLists.txt @@ -22,8 +22,6 @@ ######################################################################## # Conditionally configure the B100 support ######################################################################## -LIBUHD_REGISTER_COMPONENT("B100" ENABLE_B100 ON "ENABLE_LIBUHD;ENABLE_USB" OFF OFF) - IF(ENABLE_B100) LIBUHD_APPEND_SOURCES( ${CMAKE_CURRENT_SOURCE_DIR}/b100_impl.cpp -- cgit v1.2.3