Made debugger tools optional.

This commit is contained in:
James Goppert
2015-09-19 11:52:35 -04:00
parent 8165cd2171
commit 9f5edb32bf

View File

@@ -37,7 +37,7 @@ endif()
cmake_force_cxx_compiler(${CXX_COMPILER} GNU)
# compiler tools
foreach(tool objcopy nm ld gdb gdbtui)
foreach(tool objcopy nm ld)
string(TOUPPER ${tool} TOOL)
find_program(${TOOL} arm-none-eabi-${tool})
if(NOT ${TOOL})
@@ -45,6 +45,12 @@ foreach(tool objcopy nm ld gdb gdbtui)
endif()
endforeach()
# optional compiler tools
foreach(tool gdb gdbtui)
string(TOUPPER ${tool} TOOL)
find_program(${TOOL} arm-none-eabi-${tool})
endforeach()
# os tools
foreach(tool echo patch grep rm mkdir nm genromfs cp touch make unzip)
string(TOUPPER ${tool} TOOL)