vcpkg/ports/caf/fix-arm.patch

20 lines
811 B
Diff
Raw Normal View History

diff --git a/CMakeLists.txt b/CMakeLists.txt
index da58790..d79a1ae 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -99,11 +99,13 @@ endfunction(pretty_yes)
add_executable(caf-generate-enum-strings cmake/caf-generate-enum-strings.cpp)
+install(TARGETS caf-generate-enum-strings DESTINATION tools)
+
function(enum_to_string relative_input_file relative_output_file)
set(input "${CMAKE_CURRENT_SOURCE_DIR}/${relative_input_file}")
set(output "${CMAKE_CURRENT_BINARY_DIR}/${relative_output_file}")
add_custom_command(OUTPUT "${output}"
- COMMAND caf-generate-enum-strings "${input}" "${output}"
+ COMMAND ${CAF_TOOL_PATH}caf-generate-enum-strings "${input}" "${output}"
DEPENDS caf-generate-enum-strings "${input}")
endfunction()