diff --git a/cmake/cmake.define b/cmake/cmake.define index 53d25e10977f73716957ffded17c0409c6ac9865..e875a0d306e666a44d521f0b6214f6de252019b9 100644 --- a/cmake/cmake.define +++ b/cmake/cmake.define @@ -3,12 +3,6 @@ cmake_minimum_required(VERSION 3.16) if (NOT DEFINED TD_GRANT) SET(TD_GRANT FALSE) endif() -if (NOT DEFINED TD_USB_DONGLE) - SET(TD_USB_DONGLE FALSE) -endif() -IF (TD_GRANT) - ADD_DEFINITIONS(-D_GRANT) -ENDIF () IF ("${BUILD_TOOLS}" STREQUAL "") IF (TD_LINUX) diff --git a/source/dnode/mgmt/implement/CMakeLists.txt b/source/dnode/mgmt/implement/CMakeLists.txt index 26c14edc77fca9184dd72dfa511049cc323a8c18..fbe7530395e074bde7a780afa9914fcc31ec4d03 100644 --- a/source/dnode/mgmt/implement/CMakeLists.txt +++ b/source/dnode/mgmt/implement/CMakeLists.txt @@ -6,12 +6,4 @@ target_link_libraries( target_include_directories( dnode PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" -) - -IF (TD_GRANT) - TARGET_LINK_LIBRARIES(dnode grant) -ENDIF () -IF (TD_USB_DONGLE) - TARGET_LINK_LIBRARIES(dnode usb_dongle) -else() -ENDIF () \ No newline at end of file +) \ No newline at end of file diff --git a/source/dnode/mnode/impl/CMakeLists.txt b/source/dnode/mnode/impl/CMakeLists.txt index 8cb5e2a528fa52430d07d47f691a1c5a493a55ac..a4bd12a7f7627307cd1473d4ef973657c1c4fb49 100644 --- a/source/dnode/mnode/impl/CMakeLists.txt +++ b/source/dnode/mnode/impl/CMakeLists.txt @@ -12,8 +12,8 @@ target_link_libraries( IF (TD_GRANT) TARGET_LINK_LIBRARIES(mnode grant) ENDIF () -IF (TD_USB_DONGLE) - TARGET_LINK_LIBRARIES(mnode usb_dongle) +IF (TD_GRANT) + ADD_DEFINITIONS(-D_GRANT) ENDIF () if(${BUILD_TEST})