mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
cmCPackIFWInstaller: fix validation of WizardStyle option
This commit is contained in:
parent
a168b4ccc2
commit
9a740f1b59
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user