obs-studio/obs-studio-30.0.0-cmake-build-destdir.patch

48 lines
2.4 KiB
Diff
Raw Permalink Normal View History

--- obs-studio-30.0.0/cmake/Modules/ObsHelpers.cmake.orig 2023-11-24 14:46:40.686541381 +0100
+++ obs-studio-30.0.0/cmake/Modules/ObsHelpers.cmake 2023-11-24 14:47:16.269785760 +0100
@@ -54,7 +54,7 @@
add_custom_command(
TARGET ${target}
POST_BUILD
- COMMAND "${CMAKE_COMMAND}" -E env DESTDIR= "${CMAKE_COMMAND}" --install .. --config $<CONFIG> --prefix
+ COMMAND "${CMAKE_COMMAND}" -E env "${CMAKE_COMMAND}" --install .. --config $<CONFIG> --prefix
${OBS_OUTPUT_DIR}/$<CONFIG> --component obs_${target} > "$<IF:$<PLATFORM_ID:Windows>,nul,/dev/null>"
COMMENT "Installing OBS rundir"
VERBATIM)
@@ -86,7 +86,7 @@
add_custom_command(
TARGET ${target}
POST_BUILD
- COMMAND "${CMAKE_COMMAND}" -E env DESTDIR= "${CMAKE_COMMAND}" --install .. --config $<CONFIG> --prefix
+ COMMAND "${CMAKE_COMMAND}" -E env "${CMAKE_COMMAND}" --install .. --config $<CONFIG> --prefix
${OBS_OUTPUT_DIR}/$<CONFIG> --component obs_${target} > "$<IF:$<PLATFORM_ID:Windows>,nul,/dev/null>"
COMMENT "Installing ${target} to OBS rundir"
VERBATIM)
@@ -124,7 +124,7 @@
add_custom_command(
TARGET ${target}
POST_BUILD
- COMMAND "${CMAKE_COMMAND}" -E env DESTDIR= "${CMAKE_COMMAND}" --install .. --config $<CONFIG> --prefix
+ COMMAND "${CMAKE_COMMAND}" -E env "${CMAKE_COMMAND}" --install .. --config $<CONFIG> --prefix
${OBS_OUTPUT_DIR}/$<CONFIG> --component obs_${target} > "$<IF:$<PLATFORM_ID:Windows>,nul,/dev/null>"
COMMENT "Installing ${target} to OBS rundir"
VERBATIM)
@@ -191,7 +191,7 @@
add_custom_command(
TARGET ${target}
POST_BUILD
- COMMAND "${CMAKE_COMMAND}" -E env DESTDIR= "${CMAKE_COMMAND}" --install .. --config $<CONFIG> --prefix
+ COMMAND "${CMAKE_COMMAND}" -E env "${CMAKE_COMMAND}" --install .. --config $<CONFIG> --prefix
${OBS_OUTPUT_DIR}/$<CONFIG> --component obs_rundir > "$<IF:$<PLATFORM_ID:Windows>,nul,/dev/null>"
COMMENT "Installing OBS rundir"
VERBATIM)
@@ -457,7 +457,7 @@
add_custom_command(
TARGET ${target}
POST_BUILD
- COMMAND "${CMAKE_COMMAND}" -E env DESTDIR= "${CMAKE_COMMAND}" --install .. --config $<CONFIG> --prefix
+ COMMAND "${CMAKE_COMMAND}" -E env "${CMAKE_COMMAND}" --install .. --config $<CONFIG> --prefix
${OBS_OUTPUT_DIR}/$<CONFIG> --component obs_${target} > "$<IF:$<PLATFORM_ID:Windows>,nul,/dev/null>"
COMMENT "Installing ${target} to OBS rundir"
VERBATIM)