aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAJ Jordan <alex@strugee.net>2020-12-28 22:13:52 -0800
committerAJ Jordan <alex@strugee.net>2022-05-12 14:57:28 -0400
commitbc6b75ade4ff00516bc23f607e67c95509667334 (patch)
tree6f86224141bdc905c07eab48d6f9e7d331aa3365 /cmake
parent99a4d44eb55763234bc9a4ffce471e1a039ebfed (diff)
[build] fix CMake-related build quoting issue
CMake on my Debian 10 machine was quoting the PATH environment variable being set here, which made the shell interpret that not as a variable being set but as a command, which it then would print a confusing error message about not being able to find. We work around this by using CMake's built-in environment modification utility.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindLibDvd.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/FindLibDvd.cmake b/cmake/modules/FindLibDvd.cmake
index 78b047ac2f..8fe9d6d3e2 100644
--- a/cmake/modules/FindLibDvd.cmake
+++ b/cmake/modules/FindLibDvd.cmake
@@ -19,7 +19,7 @@ function(addstep_autoreconf module_name)
ExternalProject_Add_Step(${module_name} autoreconf
DEPENDEES download update patch
DEPENDERS configure
- COMMAND PATH=${NATIVEPREFIX}/bin:$ENV{PATH} autoreconf -vif
+ COMMAND ${CMAKE_COMMAND} -E env PATH=${NATIVEPREFIX}/bin:$ENV{PATH} autoreconf -vif
WORKING_DIRECTORY <SOURCE_DIR>)
endfunction()