From 5ec2550cd6cf634e948b5fc32dc4e049deb3cf77 Mon Sep 17 00:00:00 2001 From: xelmirage Date: Wed, 23 Oct 2024 17:28:29 +0800 Subject: [PATCH] Update CMakeLists.txt bug fix for cmake error: string sub-command REGEX, mode MATCH needs at least 5 arguments total to command. --- samples/sample_c++/platform/linux/manifold2/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/sample_c++/platform/linux/manifold2/CMakeLists.txt b/samples/sample_c++/platform/linux/manifold2/CMakeLists.txt index 5677abff..1b5ed29f 100644 --- a/samples/sample_c++/platform/linux/manifold2/CMakeLists.txt +++ b/samples/sample_c++/platform/linux/manifold2/CMakeLists.txt @@ -85,9 +85,9 @@ if (FFMPEG_FOUND) OUTPUT_VARIABLE ffmpeg_version_output OUTPUT_STRIP_TRAILING_WHITESPACE ) - string(REGEX MATCH "version.*Copyright" ffmpeg_version_line ${ffmpeg_version_output}) - string(REGEX MATCH " .* " ffmpeg_version ${ffmpeg_version_line}) - string(REGEX MATCH "^ 5.*$" ffmpeg_major_version ${ffmpeg_version}) + string(REGEX MATCH "version.*Copyright" ffmpeg_version_line "${ffmpeg_version_output}") + string(REGEX MATCH " .* " ffmpeg_version "${ffmpeg_version_line}") + string(REGEX MATCH "^ 5.*$" ffmpeg_major_version "${ffmpeg_version}") if (HEAD${ffmpeg_major_version} STREQUAL "HEAD") message(STATUS " - Version: ${ffmpeg_version}")