diff options
author | Christian Pfeiffer <cpfeiffer@live.de> | 2017-04-26 18:34:06 (GMT) |
---|---|---|
committer | Christian Pfeiffer <cpfeiffer@live.de> | 2017-04-26 18:34:06 (GMT) |
commit | 2a207aaca1d8414624dd4cfe8fcb19d03fe84546 (patch) | |
tree | 1366f0906caef3d94cb289ea080e18006632c874 /Source/cmSeparateArgumentsCommand.cxx | |
parent | 81841426fc12864008999893c11e555df06df292 (diff) | |
download | CMake-2a207aaca1d8414624dd4cfe8fcb19d03fe84546.zip CMake-2a207aaca1d8414624dd4cfe8fcb19d03fe84546.tar.gz CMake-2a207aaca1d8414624dd4cfe8fcb19d03fe84546.tar.bz2 |
separgs: Add a NATIVE_COMMAND mode
Diffstat (limited to 'Source/cmSeparateArgumentsCommand.cxx')
-rw-r--r-- | Source/cmSeparateArgumentsCommand.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmSeparateArgumentsCommand.cxx b/Source/cmSeparateArgumentsCommand.cxx index b27d227..7b222a0 100644 --- a/Source/cmSeparateArgumentsCommand.cxx +++ b/Source/cmSeparateArgumentsCommand.cxx @@ -40,6 +40,13 @@ bool cmSeparateArgumentsCommand::InitialPass( if (doing == DoingVariable) { var = args[i]; doing = DoingMode; + } else if (doing == DoingMode && args[i] == "NATIVE_COMMAND") { +#ifdef _WIN32 + mode = ModeWindows; +#else + mode = ModeUnix; +#endif + doing = DoingCommand; } else if (doing == DoingMode && args[i] == "UNIX_COMMAND") { mode = ModeUnix; doing = DoingCommand; |