cmCPackIFWInstaller: fix validation of WizardStyle option

This commit is contained in:
Konstantin Podsvirov 2017-04-21 20:54:50 +02:00 committed by Daniel Pfeifer
parent a168b4ccc2
commit 9a740f1b59

View File

@ -171,16 +171,17 @@ void cmCPackIFWInstaller::ConfigureFromOptions()
// WizardStyle
if (const char* option = GetOption("CPACK_IFW_PACKAGE_WIZARD_STYLE")) {
if (WizardStyle == "Modern" && WizardStyle == "Aero" &&
WizardStyle == "Mac" && WizardStyle == "Classic") {
// Setting the user value in any case
WizardStyle = option;
// Check known values
if (WizardStyle != "Modern" && WizardStyle != "Aero" &&
WizardStyle != "Mac" && WizardStyle != "Classic") {
cmCPackLogger(
cmCPackLog::LOG_WARNING,
"Option CPACK_IFW_PACKAGE_WIZARD_STYLE has unknown value \""
<< option << "\". Expected values are: Modern, Aero, Mac, Classic."
<< std::endl);
}
WizardStyle = option;
}
// WizardDefaultWidth