File: fix-install-of-ogg-files.patch

package info (click to toggle)
colobot 0.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 415,532 kB
  • sloc: cpp: 129,246; ansic: 8,872; python: 2,158; sh: 672; awk: 91; xml: 35; makefile: 31
file content (21 lines) | stat: -rw-r--r-- 894 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Fix install of converted ogg files
Author: Didier Raboud <odyx@debian.org>
Last-Update: 2025-01-24
Forwarded: https://github.com/colobot/colobot-data/pull/130

--- a/data/music/CMakeLists.txt
+++ b/data/music/CMakeLists.txt
@@ -93,11 +93,11 @@ if(MUSIC)
                 message(STATUS "Adding OGG convert target for ${FILE}")
 
                 execute_process(
-                    COMMAND ${OGGENC} -q ${MUSIC_QUALITY} -o "${FILENAME}.ogg" "${DOWNLOAD_FILE_LOC}"
+                    COMMAND ${OGGENC} -q ${MUSIC_QUALITY} -o "${CMAKE_CURRENT_BINARY_DIR}/${FILENAME}.ogg" "${DOWNLOAD_FILE_LOC}"
                 )
 
                 install(FILES
-                    ${CMAKE_CURRENT_SOURCE_DIR}/${FILENAME}.ogg
+                    ${CMAKE_CURRENT_BINARY_DIR}/${FILENAME}.ogg
                     DESTINATION ${COLOBOT_INSTALL_MUSIC_DIR}
                 )
             endif()