summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-07-11 18:43:53 (GMT)
committerBrad King <brad.king@kitware.com>2016-07-11 18:44:38 (GMT)
commit047862d3919b490b7cb011a8128b7879d9920edf (patch)
tree31b86349e8021919bfa1d939d06884573cddaaeb
parentb7a94fbb708c989034d54044c7e1891bb76ae690 (diff)
downloadCMake-047862d3919b490b7cb011a8128b7879d9920edf.zip
CMake-047862d3919b490b7cb011a8128b7879d9920edf.tar.gz
CMake-047862d3919b490b7cb011a8128b7879d9920edf.tar.bz2
cmake: Fix -E env_vs8_wince implementation
This code has accidentally not been compiled since commit v3.0.0-rc1~556^2 (cmake: Split -E command implementation into separate source file, 2013-10-03) because CMAKE_HAVE_VS_GENERATORS was local to `cmake.cxx`. Fixes #16195.
-rw-r--r--Source/cmcmd.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx
index 0dac7b5..feb330c 100644
--- a/Source/cmcmd.cxx
+++ b/Source/cmcmd.cxx
@@ -27,7 +27,7 @@
#include <cmsys/Process.h>
#include <cmsys/Terminal.h>
-#if defined(CMAKE_HAVE_VS_GENERATORS)
+#if defined(CMAKE_BUILD_WITH_CMAKE) && defined(_WIN32) && !defined(__CYGWIN__)
#include "cmVisualStudioWCEPlatformParser.h"
#endif
@@ -1171,7 +1171,7 @@ int cmcmd::ExecuteLinkScript(std::vector<std::string>& args)
int cmcmd::WindowsCEEnvironment(const char* version, const std::string& name)
{
-#if defined(CMAKE_HAVE_VS_GENERATORS)
+#if defined(CMAKE_BUILD_WITH_CMAKE) && defined(_WIN32) && !defined(__CYGWIN__)
cmVisualStudioWCEPlatformParser parser(name.c_str());
parser.ParseVersion(version);
if (parser.Found()) {