aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/ktx/0003-mkversion.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/ktx/0003-mkversion.patch')
-rw-r--r--vcpkg/ports/ktx/0003-mkversion.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/ktx/0003-mkversion.patch b/vcpkg/ports/ktx/0003-mkversion.patch
new file mode 100644
index 0000000..ee8b3c4
--- /dev/null
+++ b/vcpkg/ports/ktx/0003-mkversion.patch
@@ -0,0 +1,13 @@
+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