Re: [CMake] VS2010 tries to compile a file with *.res extension when its copied

2011-01-21 Thread Aaron_Wright
This is with both 2.8.3 and 2.8.4-rc1. On a side note, VS2010 is not trying to compile the *.res file as part of the executable, because it is marked HEADER_FILE_ONLY, and in addition I can remove it entirely from the project. Instead, even when the *.res file appears no where in the solution

Re: [CMake] VS2010 tries to compile a file with *.res extension when its copied

2011-01-21 Thread David Cole
This is similar in nature to http://public.kitware.com/Bug/view.php?id=11147and friends... The fix for that issue is ending up being obj file specific, though, because we have a special handler in place for files with obj extensions. Perhaps we need similar handling for res files. (They are

Re: [CMake] VS2010 tries to compile a file with *.res extension when its copied

2011-01-21 Thread Aaron_Wright
Well, you're probably going to think this is stupid, but the *.res file is not actually a resource file in the Microsoft sense of it. It's just a text file that happens to have the *.res extension. It's a string localization text file that our logging library knows how to read. It think it is

Re: [CMake] VS2010 tries to compile a file with *.res extension when its copied

2011-01-21 Thread David Cole
I don't think it's stupid. No judgment here. :-) But can it be renamed, or does this logging library require .res as the file extension? On Fri, Jan 21, 2011 at 11:22 AM, aaron_wri...@selinc.com wrote: Well, you're probably going to think this is stupid, but the *.res file is not actually a

Re: [CMake] VS2010 tries to compile a file with *.res extension when its copied

2011-01-21 Thread Aaron_Wright
Ah, I new that would come up. Yeah, they could be renamed. There are only a dozen or so of them. I was just trying to migrate the build system to VS2010 in between projects here at work, and this is the only thing holding me back from a smooth transition. Changing the extension is certainly an

Re: [CMake] VS2010 tries to compile a file with *.res extension when its copied

2011-01-21 Thread David Cole
I'll take a look at the code you sent in your original post and try to see exactly why it's not working. I might not get to it until the end of the day, though. If it worked in VS2008, but not now in VS2010, then we're clearly doing something different in the generators. I'll find out if it's an

[CMake] VS2010 tries to compile a file with *.res extension when its copied

2011-01-20 Thread Aaron_Wright
I know I've asked this before, but now I've narrowed it down a bit and I have an example. This copies a *.res file to the binary directory where presumably the executable can find it. The executable has that file as a source file to hook up the dependency, and the copied file has the

Re: [CMake] VS2010 tries to compile a file with *.res extension when its copied

2011-01-20 Thread David Cole
Is tha with 2.8.3 or 2.8.4-rc1? On Thursday, January 20, 2011, aaron_wri...@selinc.com wrote: I know I've asked this before, but now I've narrowed it down a bit and I have an example. This copies a *.res file to the binary directory where presumably the executable can find it. The executable