mirror of
https://github.com/bkaradzic/bgfx.cmake.git
synced 2026-02-17 21:12:35 +01:00
tools: Add an option to insert search paths for tools
This commit is contained in:
@@ -14,6 +14,7 @@ macro(_bgfx_crosscompile_use_host_tool TOOL_NAME)
|
|||||||
find_program(
|
find_program(
|
||||||
${TOOL_NAME}_EXECUTABLE
|
${TOOL_NAME}_EXECUTABLE
|
||||||
NAMES bgfx-${TOOL_NAME} ${TOOL_NAME}
|
NAMES bgfx-${TOOL_NAME} ${TOOL_NAME}
|
||||||
|
PATHS @BGFX_ADDITIONAL_TOOL_PATHS@ /usr/bin
|
||||||
)
|
)
|
||||||
add_executable(bgfx::${TOOL_NAME} IMPORTED)
|
add_executable(bgfx::${TOOL_NAME} IMPORTED)
|
||||||
set_target_properties(bgfx::${TOOL_NAME} PROPERTIES IMPORTED_LOCATION "${${TOOL_NAME}_EXECUTABLE}")
|
set_target_properties(bgfx::${TOOL_NAME} PROPERTIES IMPORTED_LOCATION "${${TOOL_NAME}_EXECUTABLE}")
|
||||||
|
|||||||
Reference in New Issue
Block a user