vcpkg/ports/ktx/0003-mkversion.patch
Kai Pastor fc54955667
[ktx] Update and fixes (#30804)
* [ktx] Update and fixes

* Fix quirks
2023-04-14 14:14:37 -07:00

14 lines
673 B
Diff

diff --git a/cmake/version.cmake b/cmake/version.cmake
index 9a90622..0fc3521 100644
--- a/cmake/version.cmake
+++ b/cmake/version.cmake
@@ -176,7 +176,7 @@ function( create_version_header dest_path target )
add_custom_command(
OUTPUT ${version_h_output}
# On Windows this command has to be invoked by a shell in order to work
- COMMAND ${BASH_EXECUTABLE} -c "\"./mkversion\" \"-o\" \"version.h\" \"${dest_path}\""
+ COMMAND "${BASH_EXECUTABLE}" -- ./mkversion -o version.h "${dest_path}"
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
COMMENT "Generate ${version_h_output}"
VERBATIM