vcpkg/ports/caf/fix-arm.patch
Jack·Boos·Yu 0fb8168c7c [caf] Update to 0.17.2 (#8888)
* [caf]Upgrade to 0.17.2

* update baseline
2020-01-10 15:46:23 -08:00

20 lines
811 B
Diff

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()