diff --git a/cmake/Config.cmake.in b/cmake/Config.cmake.in index 0621c63..33a3943 100644 --- a/cmake/Config.cmake.in +++ b/cmake/Config.cmake.in @@ -14,6 +14,7 @@ macro(_bgfx_crosscompile_use_host_tool TOOL_NAME) find_program( ${TOOL_NAME}_EXECUTABLE NAMES bgfx-${TOOL_NAME} ${TOOL_NAME} + PATHS @BGFX_ADDITIONAL_TOOL_PATHS@ /usr/bin ) add_executable(bgfx::${TOOL_NAME} IMPORTED) set_target_properties(bgfx::${TOOL_NAME} PROPERTIES IMPORTED_LOCATION "${${TOOL_NAME}_EXECUTABLE}")