From aa57df6d6ed6d17000522492b66fc93d3f32ab86 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Fri, 23 Mar 2018 17:02:23 -0700 Subject: [PATCH] [ffmpeg] Fail-fast if spaces are preset in the path --- ports/ffmpeg/portfile.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ports/ffmpeg/portfile.cmake b/ports/ffmpeg/portfile.cmake index 11c24ebc7..994e057b3 100644 --- a/ports/ffmpeg/portfile.cmake +++ b/ports/ffmpeg/portfile.cmake @@ -5,6 +5,11 @@ vcpkg_download_distfile(ARCHIVE FILENAME "ffmpeg-3.3.3.tar.bz2" SHA512 1cc63bf73356f4e618c0d3572a216bdf5689f10deff56b4262f6d740b0bee5a4b3eac234f45fca3d4d2da77903a507b4fba725b76d2d2070f31b6dae9e7a2dab ) + +if (${SOURCE_PATH} MATCHES " ") + message(FATAL_ERROR "Error: ffmpeg will not build with spaces in the path. Please use a directory with no spaces") +endif() + vcpkg_extract_source_archive(${ARCHIVE}) vcpkg_apply_patches( SOURCE_PATH ${SOURCE_PATH}