Browse Source

Fixed wrong check for Linux target platform in CLI options.

pull/750/head
Joao Matos 9 years ago
parent
commit
0180badea4
  1. 2
      src/CLI/Generator.cs

2
src/CLI/Generator.cs

@ -37,7 +37,7 @@ namespace CppSharp @@ -37,7 +37,7 @@ namespace CppSharp
messages.Add("Cannot create bindings for a platform other that MacOS from a MacOS running machine");
return false;
}
else if (Platform.IsUnixPlatform && _options.Platform != TargetPlatform.Linux)
else if (Platform.IsLinux && _options.Platform != TargetPlatform.Linux)
{
messages.Add("Cannot create bindings for a platform other that Linux from a Linux running machine");
return false;

Loading…
Cancel
Save