> Indeed I have tried several ways to create and build projects without > using CMake at all, and so far no luck--I still get "requires > elevation" errors. I don't have a solution for my problem yet but it > appears that whatever it is that is stopping me from building projects, > CMake does not cause the problem. > > Thanks to everyone for the helpful advice, which significantly narrowed > down the possible sources of error.
Although this is not really a CMake problem, this thread now comes up in the Google search results for symptoms similar to mine, so it seems useful to post a resolution in case someone else comes upon this thread for that reason. Running the IDE as administrator (not as simple as just "opening" an .sln file, unfortunately), I found another underlying error for which an answer is given at http://stackoverflow.com/a/10890428 . In summary, after I did a web-based installation of Visual Studio 2010 Service Pack 1, I was able to build a project created in the IDE, I was able use CMake to generate projects, and I was able to build the projects generated by CMake. Incidentally, when I first got CMake and the compilers to run correctly, I was only able to do it by running CMake or DEVENV as administrator. Not so coincidentally, somehow during all the installing/uninstalling/attempted fixes I had applied, CL.EXE had been set to run as Administrator for all users. It turns out that when I UNDID this setting (so CL.EXE does not always run as Administrator), CMake and the compilers succeeded without my having to take any special steps to run anything as administrator. Go figure. 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