Merge topic 'Fix-XXX_ON_ABSOLUTE_INSTALL_DESTINATION-handling'
561b4ba
CPACK_XX_ON_ABSOLUTE_INSTALL_DESTINATION is now properly checked for ON/OFF
This commit is contained in:
commit
8bffb8451c
|
@ -855,7 +855,7 @@ int cmCPackGenerator::InstallProjectViaInstallCMakeProjects(
|
||||||
|
|
||||||
// If CPack was asked to warn on ABSOLUTE INSTALL DESTINATION
|
// If CPack was asked to warn on ABSOLUTE INSTALL DESTINATION
|
||||||
// then forward request to cmake_install.cmake script
|
// then forward request to cmake_install.cmake script
|
||||||
if (this->GetOption("CPACK_WARN_ON_ABSOLUTE_INSTALL_DESTINATION"))
|
if (this->IsOn("CPACK_WARN_ON_ABSOLUTE_INSTALL_DESTINATION"))
|
||||||
{
|
{
|
||||||
mf->AddDefinition("CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION",
|
mf->AddDefinition("CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION",
|
||||||
"1");
|
"1");
|
||||||
|
@ -865,7 +865,7 @@ int cmCPackGenerator::InstallProjectViaInstallCMakeProjects(
|
||||||
// then ask cmake_install.cmake script to error out
|
// then ask cmake_install.cmake script to error out
|
||||||
// as soon as it occurs (before installing file)
|
// as soon as it occurs (before installing file)
|
||||||
if (!SupportsAbsoluteDestination() ||
|
if (!SupportsAbsoluteDestination() ||
|
||||||
this->GetOption("CPACK_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION"))
|
this->IsOn("CPACK_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION"))
|
||||||
{
|
{
|
||||||
mf->AddDefinition("CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION",
|
mf->AddDefinition("CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION",
|
||||||
"1");
|
"1");
|
||||||
|
|
Loading…
Reference in New Issue