diff options
author | Konstantin Podsvirov <konstantin@podsvirov.pro> | 2017-01-09 22:23:18 (GMT) |
---|---|---|
committer | Konstantin Podsvirov <konstantin@podsvirov.pro> | 2017-01-10 16:26:21 (GMT) |
commit | 3462118c6d700754e243492c3a65ef4ff26923f5 (patch) | |
tree | dbcd484fffc827d19610e388ee5476524adf0b2a | |
parent | 914728f8d724e834a402619d05309ad8154ba59d (diff) | |
download | CMake-3462118c6d700754e243492c3a65ef4ff26923f5.zip CMake-3462118c6d700754e243492c3a65ef4ff26923f5.tar.gz CMake-3462118c6d700754e243492c3a65ef4ff26923f5.tar.bz2 |
Allow CodeBlocks for NMake Makefiles JOM
-rw-r--r-- | Help/generator/CodeBlocks.rst | 3 | ||||
-rw-r--r-- | Help/release/dev/codeblocks-nmake-makefiles-jom.rst | 5 | ||||
-rw-r--r-- | Source/cmExtraCodeBlocksGenerator.cxx | 3 |
3 files changed, 10 insertions, 1 deletions
diff --git a/Help/generator/CodeBlocks.rst b/Help/generator/CodeBlocks.rst index 01798c7..d03cb0c 100644 --- a/Help/generator/CodeBlocks.rst +++ b/Help/generator/CodeBlocks.rst @@ -18,6 +18,9 @@ This "extra" generator may be specified as: ``CodeBlocks - NMake Makefiles`` Generate with :generator:`NMake Makefiles`. +``CodeBlocks - NMake Makefiles JOM`` + Generate with :generator:`NMake Makefiles JOM`. + ``CodeBlocks - Ninja`` Generate with :generator:`Ninja`. diff --git a/Help/release/dev/codeblocks-nmake-makefiles-jom.rst b/Help/release/dev/codeblocks-nmake-makefiles-jom.rst new file mode 100644 index 0000000..f5612f0 --- /dev/null +++ b/Help/release/dev/codeblocks-nmake-makefiles-jom.rst @@ -0,0 +1,5 @@ +codeblocks-nmake-makefiles-jom +------------------------------ + +* The :generator:`CodeBlocks` now can generate with + :generator:`NMake Makefiles JOM`. diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx index f544e8a..2dffcaa 100644 --- a/Source/cmExtraCodeBlocksGenerator.cxx +++ b/Source/cmExtraCodeBlocksGenerator.cxx @@ -48,6 +48,7 @@ cmExtraCodeBlocksGenerator::GetFactory() #if defined(_WIN32) factory.AddSupportedGlobalGenerator("MinGW Makefiles"); factory.AddSupportedGlobalGenerator("NMake Makefiles"); + factory.AddSupportedGlobalGenerator("NMake Makefiles JOM"); // disable until somebody actually tests it: // this->AddSupportedGlobalGenerator("MSYS Makefiles"); #endif @@ -741,7 +742,7 @@ std::string cmExtraCodeBlocksGenerator::BuildMakeCommand( } std::string generator = this->GlobalGenerator->GetName(); - if (generator == "NMake Makefiles") { + if (generator == "NMake Makefiles" || generator == "NMake Makefiles JOM") { // For Windows ConvertToOutputPath already adds quotes when required. // These need to be escaped, see // https://gitlab.kitware.com/cmake/cmake/issues/13952 |