X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Bootloader%2FCMakeLists.txt;h=41c2bccb1ffcc790cffc0125a1b01e0d8ffcf091;hb=b9fa9c8672a4d1fd89c0c11a358536dfe3ec28a1;hp=7a938d93f1bfcc5818b15bf17f9ba50f1d456ba7;hpb=1acbc97e98d8388332c51260017ab23227a91339;p=kiibohd-controller.git diff --git a/Bootloader/CMakeLists.txt b/Bootloader/CMakeLists.txt index 7a938d9..41c2bcc 100644 --- a/Bootloader/CMakeLists.txt +++ b/Bootloader/CMakeLists.txt @@ -60,7 +60,6 @@ include( initialize ) # set( SRCS main.c - debug.c # TODO only compile in if necessary dfu.c dfu.desc.c flash.c @@ -68,6 +67,14 @@ set( SRCS usb.c ) +# Only compile in if necessary +if( CHIP STREQUAL "mk20dx256vlh7" ) + set( SRCS ${SRCS} + debug.c + ) +endif() + + message( STATUS "Bootloader Source Files:" ) message( "${SRCS}" )