[CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-11 Thread Ben Medina
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 bui

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Brett Delle Grazie
On 12 June 2012 00:21, 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 g

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Brad King
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 g

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Brad King
On Mon, Jun 11, 2012 at 7:21 PM, Ben Medina wrote: > Has anyone tried the Visual Studio 2012 beta with CMake's "Visual Studio 11" > generator? I just installed the VS 2012 RC from MSDN: Microsoft Visual Studio Professional 2012 RC Version 11.0.50522.1 RCREL Microsoft .NET Framework Version 4.

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Ben Medina
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 wrote: > On 06/1

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Ben Medina
Thanks for checking. Full project builds work fine for me; it's just individual file compilations in the IDE that fail. - Ben On Tue, Jun 12, 2012 at 8:40 AM, Brad King wrote: > On Mon, Jun 11, 2012 at 7:21 PM, Ben Medina wrote: >> Has anyone tried the Visual Studio 2012 beta with CMake's "Visu

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Ben Medina
Thanks for the suggestion. Unfortunately, CMAKE_USE_RELATIVE_PATHS seems to have no effect for this generator. - Ben On Tue, Jun 12, 2012 at 2:21 AM, Brett Delle Grazie wrote: > On 12 June 2012 00:21, Ben Medina wrote: >> Has anyone tried the Visual Studio 2012 beta with CMake's "Visual >> Stud

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Brad King
On 06/12/2012 11:43 AM, Ben Medina wrote: > Thanks for checking. Full project builds work fine for me; it's just > individual file compilations in the IDE that fail. Okay. My initial read of your original message made it sound like you got the error for any project even if it is only one file. A

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Brad King
On 06/12/2012 11:51 AM, Brad King wrote: > http://www.cmake.org/Bug/view.php?id=12570 > > The main change to address it is here: > > http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d931ce9f I forgot to point out that this change is not in CMake 2.8.8 but will be in 2.8.9. -Brad -- Powered

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Brad King
On 06/12/2012 11:51 AM, Brad King wrote: > http://www.cmake.org/Bug/view.php?id=12570 > > The main change to address it is here: > > http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d931ce9f > > The problem was known to occur for VS 10 but did not in the > VS 11 developer preview. Perhaps i

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Ben Medina
Thanks! Here are the results: - Using the VS2010 generator, the project files have relative paths. VS2012RC can load 2010 project files without modifying them. If I do this, compilation of individual files is successful. - Using the VS11 generator, the project files have absolute paths, and compi

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Ben Medina
I've filed a bug with Microsoft: https://connect.microsoft.com/VisualStudio/feedback/details/748640/cannot-compile-individual-files-if-project-contains-full-path-to-file On Tue, Jun 12, 2012 at 11:20 AM, Ben Medina wrote: > Thanks! Here are the results: > > - Using the VS2010 generator, the proje

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Fraser Hutchison
Yeah - I can reproduce this too (better late than never - sorry!) I've upvoted your bug report Ben. Cheers, Fraser. On 12/06/2012 19:55, Ben Medina wrote: I've filed a bug with Microsoft: https://connect.microsoft.com/VisualStudio/feedback/details/748640/cannot-compile-individual-files-if-pr

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Ben Medina
Thanks, Fraser! Note that the sample project I attached "may take a few hours" to appear publicly, according to their bug report page. And I apologize: everywhere I mention VS2012 beta in the above thread, I meant VS2012 RC. On Tue, Jun 12, 2012 at 12:02 PM, Fraser Hutchison wrote: > Yeah - I ca

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Brad King
On 06/12/2012 02:55 PM, Ben Medina wrote: > I've filed a bug with Microsoft: > https://connect.microsoft.com/VisualStudio/feedback/details/748640/cannot-compile-individual-files-if-project-contains-full-path-to-file Fantastic, thanks! -Brad -- Powered by www.kitware.com Visit other Kitware open

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-12 Thread Brad King
On 06/12/2012 02:20 PM, Ben Medina wrote: > - Using the VS2010 generator, the project files have relative paths. > VS2012RC can load 2010 project files without modifying them. If I do > this, compilation of individual files is successful. > > - Using the VS11 generator, the project files have abso

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-21 Thread Klaim - Joël Lamotte
Hi, I'm having the same problem with a project generated with CMake 2.8.8 to VS2010 open with VS2012 RC. On Wed, Jun 13, 2012 at 3:20 AM, Ben Medina wrote: > - Using the VS2010 generator, the project files have relative paths. > VS2012RC can load 2010 project files without modifying them. If I d

Re: [CMake] Visual Studio 2012 Beta: unable to compile individual files

2012-06-21 Thread Ben Medina
Yes, you have to be running a nightly build of CMake. 2.8.8 does not use relative paths in VS2010 projects. On Thu, Jun 21, 2012 at 3:17 AM, Klaim - Joël Lamotte wrote: > Hi, I'm having the same problem with a project generated with CMake 2.8.8 to > VS2010 open with VS2012 RC. > > > On Wed, Jun 1