mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 18:27:55 +08:00
0fb8168c7c
* [caf]Upgrade to 0.17.2 * update baseline
20 lines
811 B
Diff
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()
|
|
|