Skip to content

Commit

Permalink
Fix macOS SetupFFMPEG Cmake issue which lead to build failing
Browse files Browse the repository at this point in the history
The FFMPEG Setup Cmake deletes the file VERSION from the ffmpeg generated folder, as it conflicts with the C++20 <version> header.

However, the cmake uses rm without flags, which errors out if the file has already been deleted by a previously succesful run of the cmake.
Adding the "-f" flag makes it proceed even if the file does not exist to be deleted.
  • Loading branch information
bluebandit21 authored and jameskr97 committed Oct 11, 2021
1 parent f08ae9f commit 8d316ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMake/Helpers/SetupFFMPEG.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set(FFMPEG_BIN "${PROJECT_BINARY_DIR}/ffmpeg_dl/ffmpeg_dl-build")

list(APPEND FFMPEG_CONFIGURE
"rm"
"-f"
"${FFMPEG_ROOT}/VERSION"
"&&"
"${FFMPEG_ROOT}/configure"
Expand Down

0 comments on commit 8d316ee

Please sign in to comment.