Don't look for hexmate when we run CMake for metadata only
@@ -326,9 +326,11 @@ set(output_file "$<TARGET_FILE_DIR:${exe_target}>/${exe_target}.hex")
# Locate microchip hexmate.
set(MCHP_HEXMATE_PATH "" CACHE STRING "Path to microchip hexmate, usually this should be mplab's path")
find_program(hexmate_path hexmate PATHS ${MCHP_HEXMATE_PATH} PATH_SUFFIXES bin)
+if(NOT AFR_ENABLE_METADATA)
if(NOT hexmate_path)
message(FATAL_ERROR "Cannot find microchip's hexmate tool.")
endif()
+endif()
# These locations have to be generalized through the toolchain
# We may have to re-build the bootloader hex file?
