X-Git-Url: https://git.donarmstrong.com/?p=kiibohd-controller.git;a=blobdiff_plain;f=Bootloader%2FCMakeLists.txt;h=41c2bccb1ffcc790cffc0125a1b01e0d8ffcf091;hp=7a938d93f1bfcc5818b15bf17f9ba50f1d456ba7;hb=b9fa9c8672a4d1fd89c0c11a358536dfe3ec28a1;hpb=02b919a4cb1bed022b5a09e9e03e29cda2b5a660 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}" )