aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmake/modules/hhc.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/modules/hhc.cmake b/cmake/modules/hhc.cmake
new file mode 100644
index 0000000000..2b98dfa562
--- /dev/null
+++ b/cmake/modules/hhc.cmake
@@ -0,0 +1,9 @@
+# hhc.exe returns 1 on success - which cmake instprets as failure in case
+# of add_custom_command.
+
+# Params 0,1 and 2 are "cmake -P hhc.cmake"
+set(_param ${CMAKE_ARGV3})
+
+EXECUTE_PROCESS(
+ COMMAND ${HHC_EXECUTABLE} ${_param}
+)