aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2018-03-23 17:02:23 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2018-03-23 17:02:23 -0700
commitaa57df6d6ed6d17000522492b66fc93d3f32ab86 (patch)
treed214f24405fa75d4dad9dfb938a04846d2ca6102
parent15cb53b9ddd2d86fa9b7c5cdfc67b04ee87ac884 (diff)
downloadvcpkg-aa57df6d6ed6d17000522492b66fc93d3f32ab86.tar.gz
vcpkg-aa57df6d6ed6d17000522492b66fc93d3f32ab86.zip
[ffmpeg] Fail-fast if spaces are preset in the path
-rw-r--r--ports/ffmpeg/portfile.cmake5
1 files changed, 5 insertions, 0 deletions
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}