summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio9Win64Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-11-20 16:55:28 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-11-20 16:55:28 (GMT)
commit268448b89151cf80ac9d4d0ea974a2d4f17c3cd5 (patch)
treeea1099a2ffc78c99939bbab38d2e038d040fb15d /Source/cmGlobalVisualStudio9Win64Generator.cxx
parentbbbdf54a3569aa97687091b7d6a03d645f8dabcb (diff)
downloadCMake-268448b89151cf80ac9d4d0ea974a2d4f17c3cd5.zip
CMake-268448b89151cf80ac9d4d0ea974a2d4f17c3cd5.tar.gz
CMake-268448b89151cf80ac9d4d0ea974a2d4f17c3cd5.tar.bz2
Teach VS generators to set the MACHINE type correctly.
Diffstat (limited to 'Source/cmGlobalVisualStudio9Win64Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio9Win64Generator.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudio9Win64Generator.cxx b/Source/cmGlobalVisualStudio9Win64Generator.cxx
index 288480f..c5b9bab 100644
--- a/Source/cmGlobalVisualStudio9Win64Generator.cxx
+++ b/Source/cmGlobalVisualStudio9Win64Generator.cxx
@@ -39,10 +39,12 @@ void cmGlobalVisualStudio9Win64Generator
entry.Full = "";
}
+//----------------------------------------------------------------------------
void cmGlobalVisualStudio9Win64Generator
-::EnableLanguage(std::vector<std::string>const & lang,
- cmMakefile *mf, bool optional)
+::AddPlatformDefinitions(cmMakefile* mf)
{
+ cmGlobalVisualStudio9Generator::AddPlatformDefinitions(mf);
mf->AddDefinition("CMAKE_FORCE_WIN64", "TRUE");
- cmGlobalVisualStudio9Generator::EnableLanguage(lang, mf, optional);
+ mf->AddDefinition("MSVC_C_ARCHITECTURE_ID", "x64");
+ mf->AddDefinition("MSVC_CXX_ARCHITECTURE_ID", "x64");
}