Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Commit 79790d7

Browse files
Arfrever Frehtes Taifersar ArahesisArfrever Frehtes Taifersar Arahesis
authored andcommitted
cmake_package_config_generate: Fix CMake warnings with CMake 3.23
Correct syntax to run CMake built-in command-line tools is `cmake -E`: https://cmake.org/cmake/help/v3.23/manual/cmake.1.html#run-a-command-line-tool This test was mistakenly using `cmake env ... cmake ...`, where `env` and second `cmake` were interpreted as paths (of source directory or build directory), resulting in "Ignoring extra path from command line" CMake warnings with CMake 3.23: https://gitlab.kitware.com/cmake/cmake/-/commit/eacf1f879b0933509efbd4fb4d6d72ce99412aa7
1 parent 9f0b7d3 commit 79790d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/TestPackageConfig.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ execute_process (
2323
# modified again (e.g., for MinGW AppVeyor CI builds) by adding back the
2424
# directory containing git.exe. Incidently, the Git installation directory
2525
# also contains sh.exe which causes MinGW Makefile generation to fail.
26-
COMMAND ${CMAKE_COMMAND} env PATH=${PATH}
26+
COMMAND ${CMAKE_COMMAND} -E env PATH=${PATH}
2727
${CMAKE_COMMAND} -C ${INITIAL_CACHE}
2828
-G ${GENERATOR}
2929
${_ADDITIONAL_ARGS}

0 commit comments

Comments
 (0)