public static enum Platform.OperatingSystem extends Enum<Platform.OperatingSystem>
| Enum Constant and Description |
|---|
LINUX
Linux.
|
MAC
macOS.
|
UNSUPPORTED
CMake's website does not provide binaries for this operating
system.
|
WINDOWS
Windows.
|
| Modifier and Type | Method and Description |
|---|---|
static Platform.OperatingSystem |
detected()
Returns the detected operating system.
|
static String |
getDetectionProperty() |
static Platform.OperatingSystem |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Platform.OperatingSystem[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Platform.OperatingSystem WINDOWS
public static final Platform.OperatingSystem LINUX
public static final Platform.OperatingSystem MAC
public static final Platform.OperatingSystem UNSUPPORTED
public static Platform.OperatingSystem[] values()
for (Platform.OperatingSystem c : Platform.OperatingSystem.values()) System.out.println(c);
public static Platform.OperatingSystem valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static String getDetectionProperty()
public static Platform.OperatingSystem detected()
Copyright © 2023. All rights reserved.