diff options
author | Joerg Mayer <jmayer@loplof.de> | 2015-01-09 02:34:21 +0100 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2015-01-09 01:36:33 +0000 |
commit | fb40fd31c392be96f96a43123f66d64185797933 (patch) | |
tree | 101009d4900ba7d045e25481f4165c6af89110d2 /cmake | |
parent | 4bc8d0f9a8414c452e1331e8e3e3803c3087feb5 (diff) | |
download | wireshark-fb40fd31c392be96f96a43123f66d64185797933.tar.gz |
Add a possible replacement for the cmd hack to work around hhc.exe
returning non-null on success.
To be invoked via "cmake -P hhc.cmake <single-arg>".
Change-Id: Ib2584379c512cbd7f437f36ef932b372fe02203a
Reviewed-on: https://code.wireshark.org/review/6440
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/hhc.cmake | 9 |
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} +) |