diff options
author | Andrew Fuller <afuller@teradici.com> | 2018-09-18 18:39:57 (GMT) |
---|---|---|
committer | Andrew Fuller <afuller@teradici.com> | 2018-09-18 18:41:36 (GMT) |
commit | 42fbff45e4529d3cfbeb3cbcef8c5616df3f06f1 (patch) | |
tree | b052effe1e6af2023046ed7ffddf278805abc1d7 /Modules | |
parent | 66ab24a4c54fcd5956f9eccfdb0fb60bad858ef3 (diff) | |
download | CMake-42fbff45e4529d3cfbeb3cbcef8c5616df3f06f1.zip CMake-42fbff45e4529d3cfbeb3cbcef8c5616df3f06f1.tar.gz CMake-42fbff45e4529d3cfbeb3cbcef8c5616df3f06f1.tar.bz2 |
CPack/Deb: Use CMAKE_COMMAND to set the environment
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Internal/CPack/CPackDeb.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/Internal/CPack/CPackDeb.cmake b/Modules/Internal/CPack/CPackDeb.cmake index ca3a004..2eb2fdf 100644 --- a/Modules/Internal/CPack/CPackDeb.cmake +++ b/Modules/Internal/CPack/CPackDeb.cmake @@ -92,7 +92,7 @@ function(cpack_deb_prepare_package_vars) # get file info so that we can determine if file is executable or not unset(CPACK_DEB_INSTALL_FILES) foreach(FILE_ IN LISTS FILE_PATHS_) - execute_process(COMMAND env LC_ALL=C ${FILE_EXECUTABLE} "./${FILE_}" + execute_process(COMMAND ${CMAKE_COMMAND} -E env LC_ALL=C ${FILE_EXECUTABLE} "./${FILE_}" WORKING_DIRECTORY "${WDIR}" RESULT_VARIABLE FILE_RESULT_ OUTPUT_VARIABLE INSTALL_FILE_) @@ -123,7 +123,7 @@ function(cpack_deb_prepare_package_vars) if(SHLIBDEPS_EXECUTABLE) # Check version of the dpkg-shlibdeps tool using CPackDEB method - execute_process(COMMAND env LC_ALL=C ${SHLIBDEPS_EXECUTABLE} --version + execute_process(COMMAND ${CMAKE_COMMAND} -E env LC_ALL=C ${SHLIBDEPS_EXECUTABLE} --version OUTPUT_VARIABLE _TMP_VERSION ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) @@ -151,7 +151,7 @@ function(cpack_deb_prepare_package_vars) file(MAKE_DIRECTORY "${CPACK_TEMPORARY_DIRECTORY}/DEBIAN") # Add --ignore-missing-info if the tool supports it - execute_process(COMMAND env LC_ALL=C ${SHLIBDEPS_EXECUTABLE} --help + execute_process(COMMAND ${CMAKE_COMMAND} -E env LC_ALL=C ${SHLIBDEPS_EXECUTABLE} --help OUTPUT_VARIABLE _TMP_HELP ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) |