Yes, manually editing the hand-generated (well, project wizard generated) file to use full paths triggers the problem. I guess I'll report this to Microsoft, but it would be nice to confirm that others are having the same problem.
- Ben On Tue, Jun 12, 2012 at 5:19 AM, Brad King <brad.k...@kitware.com> wrote: > On 06/11/2012 07:21 PM, Ben Medina wrote: >> Has anyone tried the Visual Studio 2012 beta with CMake's "Visual >> Studio 11" generator? I've tried with several projects, and even a >> simple project that just contains main.cpp has the same problem: >> compiling a single file does not work. Instead, I get this in the >> output window: >> >> 1>Error: Cannot build selected files. >> >> This seems to be because the paths to source files are absolute in the >> CMake-generated project file. If I use Visual Studio's project wizard >> to create a new project, the paths are relative, since the vcxproj and >> the source files are in the same directory. Changing the >> project-wizard-generated file to use absolute paths results in the >> same error. >> >> Any thoughts? Should I file a bug with Microsoft? > > If you manually edit the hand-generated project file saved by the IDE > to change the sources to full paths, does that by itself cause the > problem? > > Thanks, > -Brad -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake