A small correction: the problem with "The C compiler identification is unknown" seems to have been due to the fact that I forgot to open that particular command window as administrator. In a new command window, run as administrator, both -G "Visual Studio 10" and -G "Visual Studio 10 Win64" produce the "required elevation" error, same as before. Go figure.
David > -----Original Message----- > From: Karr, David A. @ EngilityCorp > Sent: Wednesday, January 07, 2015 12:47 PM > To: 'David Cole' > Cc: cmake@cmake.org > Subject: RE: [CMake] Unable to create project files with Visual Studio > 2010 on Windows 7 > > I tried this with a CMakeLists file that contains only a PROJECT and > ADD_EXECUTABLE (with a single C++ source file). The only things present > in the directory before running CMake were the C++ file, > CMakeLists.txt, and a batch file that I used to run CMake. I still get > the "requires elevation" error even when I run cmake.exe from a command > line as administrator. It also doesn't seem to matter whether I select > Visual Studio 10 or Visual Studio 10 Win64 as my generator. > > I thought maybe the problem was that I didn't "install" CMake, rather > (as I've been doing for years, due to the way this project is version- > controlled) I set CMAKE_ROOT to a directory that happens to contain the > CMake files and then ran a copy of cmake.exe. I just tried the exercise > again after doing a regular installation of CMake 3.1.0 (using default > choices only) and came up with the same result. (Actually not quite: > now -G "Visual Studio 10" says "The C compiler identification is > unknown", and only -G "Visual Studio 10 Win64" produces the "elevation" > error, whereas with my previous uninstalled version both generators > resulted in "elevation".) > > David -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake