mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Prefer CMAKE_MAKE_PROGRAM over CMAKE_BUILD_TOOL (#14548)
Historically these were both added for the Makefile and Visual Studio generators, respectively. Later the VS generators started using the CMAKE_MAKE_PROGRAM cache entry to find the IDE build tool, and the CMAKE_BUILD_TOOL was simply set as an alias. Fix the documentation to explain that CMAKE_MAKE_PROGRAM is the modern variable and that CMAKE_BUILD_TOOL is the compatibility alias, not the other way around. Replace uses of CMAKE_BUILD_TOOL with CMAKE_MAKE_PROGRAM in CMake-provided modules. Nothing needs to lookup CMAKE_BUILD_TOOL in the cache, so simply set it as a normal variable.
This commit is contained in:
@@ -462,7 +462,7 @@ void cmGlobalKdevelopGenerator
|
||||
" <numberofjobs>1</numberofjobs>\n"
|
||||
" <dontact>false</dontact>\n"
|
||||
" <makebin>" << this->GlobalGenerator->GetLocalGenerators()[0]->
|
||||
GetMakefile()->GetRequiredDefinition("CMAKE_BUILD_TOOL")
|
||||
GetMakefile()->GetRequiredDefinition("CMAKE_MAKE_PROGRAM")
|
||||
<< " </makebin>\n"
|
||||
" <selectedenvironment>default</selectedenvironment>\n"
|
||||
" <environments>\n"
|
||||
|
||||
Reference in New Issue
Block a user