Re: [CMake] Passing an equal sign in a list of arguments

2010-05-10 Thread Allen D Byrne
I found the answer to my problem in bug 0009214 : -D option can't use value with equals sign The trick is to qualify the tag with STRING; "TEST_ARGS:STRING=v;-param1;-parm2=5;--param3" Everything is working for now. Allen > I have a test script where I pass a list of arguments in throu

[CMake] how to (portably) change file permissions -- besides INSTALL?

2010-05-10 Thread kent williams
Subject line says it all. I could explain what I'm trying to do but it would be a case of "Too long, didn't read" for most of you. You can change permissions with the CMake 'install' command, the 'file(COPY)' and 'file(INSTALL)' command but I can't find the command that changes the permissions of

Re: [CMake] how can I filter compiler warnings?

2010-05-10 Thread Bill Lorensen
You can filter warnings with regular expressions for dashboard submissions. But, I assume you want to not see them when you build the system? On Mon, May 10, 2010 at 1:15 PM, Kevin Burge wrote: > The trick is I want the compiler to issue the warnings I need to filter for > *my* code, but I want t

Re: [CMake] how can I filter compiler warnings?

2010-05-10 Thread Kevin Burge
That's correct. On 05/10/2010 02:08 PM, Bill Lorensen wrote: You can filter warnings with regular expressions for dashboard submissions. But, I assume you want to not see them when you build the system? On Mon, May 10, 2010 at 1:15 PM, Kevin Burge wrote: The trick is I want the compiler t

Re: [CMake] how can I filter compiler warnings?

2010-05-10 Thread Hendrik Sattler
Am Montag 10 Mai 2010, 19:15:05 schrieb Kevin Burge: > The trick is I want the compiler to issue the warnings I need to filter for > *my* code, but I want them suppressed for the third party libraries we use > (particularly their headers). So, what we do is specifically filter the > warning for th

Re: [CMake] how can I filter compiler warnings?

2010-05-10 Thread Kevin Burge
The trick is I want the compiler to issue the warnings I need to filter for *my* code, but I want them suppressed for the third party libraries we use (particularly their headers). So, what we do is specifically filter the warning for things we didn't write, but fix them in our code. You don't wa

Re: [CMake] how can I filter compiler warnings?

2010-05-10 Thread Chuck Atkins
These are really the kind of warnings that you want to disable with a compiler flag but it will be specific for the given compiler. Which platforms do you see the warning on? The error message looks like an xl compiler warning. Do you see it on other platforms as well? On Mon, May 10, 2010 at

Re: [CMake] Unit tests, but not CTest

2010-05-10 Thread Tyler Roscoe
Let's keep this on the list in case it helps someone else. On Fri, May 07, 2010 at 10:27:16PM +0100, Magnus Therning wrote: > On 07/05/10 17:24, Tyler Roscoe wrote: > > On Fri, May 07, 2010 at 04:41:23PM +0100, Magnus Therning wrote: > >>>add_custom_command (TARGET ${PROJECT_NAME} > >>>

Re: [CMake] Visual Studio 2010 Express

2010-05-10 Thread Bill Hoffman
On 5/10/2010 12:10 PM, Micha Renner wrote: Running this CMake script... For VS 2010 express you should need a fix in git master, and can be fixed for any 2.8.1 install. The fix is to copy the Modules/CMakeVS10FindMake.cmake from git master of CMake into a 2.8.1 release tree. Have you done

[CMake] Passing an equal sign in a list of arguments

2010-05-10 Thread Allen D Byrne
I have a test script where I pass a list of arguments in through a variable - TEST_ARGS. No problems until I need to pass in a parameter with an equal sign: "TEST_ARGS=v;-param1;-parm2=5;--param3" An equal sign anywhere in the list wipes the entire list of arguments and TEST_ARGS is then

[CMake] Visual Studio 2010 Express

2010-05-10 Thread Micha Renner
Running this CMake script... PROJECT(T) CMAKE_MINIMUM_REQUIRED(VERSION 2.8) INCLUDE(CheckFunctionExists) INCLUDE(CheckIncludeFile) INCLUDE(CheckTypeSize) INCLUDE(CheckSymbolExists) ENABLE_TESTING() TRY_RUN(_result _compileResult ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRE

Re: [CMake] VS6 generator: resource compilation MinSizeRel Bug

2010-05-10 Thread Bill Hoffman
On 5/10/2010 7:51 AM, Michael Frommberger wrote: Hi list, I'm trying to generate with CMake 2.8.1 on Windows XP a VS6 project which compiles a resource (OK ... I know VS6 is really old, but the company I'm working for is still using it ;-)). It works pretty well with Debug, Release and RelWit

Re: [CMake] how can I filter compiler warnings?

2010-05-10 Thread Kevin Burge
My apologies: Solaris (gcc 412), AIX (xlC 9), Windows (MSVC8 - i.e. Visual Studio 2005 w/ nmake), Linux (several different gcc releases) On 05/10/2010 10:04 AM, Chuck Atkins wrote: What compiler / platform are you using? On Mon, May 10, 2010 at 9:53 AM, Kevin Burge mailto:kevin.bu...@system

Re: [CMake] how can I filter compiler warnings?

2010-05-10 Thread Kevin Burge
Solaris, AIX, Windows, Linux. On 05/10/2010 10:04 AM, Chuck Atkins wrote: What compiler / platform are you using? On Mon, May 10, 2010 at 9:53 AM, Kevin Burge mailto:kevin.bu...@systemware.com>> wrote: Any ideas on how to do this kind of supression? I'm thinking now I just need to

Re: [CMake] how can I filter compiler warnings?

2010-05-10 Thread Chuck Atkins
What compiler / platform are you using? On Mon, May 10, 2010 at 9:53 AM, Kevin Burge wrote: > Any ideas on how to do this kind of supression? I'm thinking now I just > need to write a cc/c++ "script" that cmake will find first, that actually > does the filtering. I never could figure out a w

Re: [CMake] how can I filter compiler warnings?

2010-05-10 Thread Kevin Burge
Any ideas on how to do this kind of supression? I'm thinking now I just need to write a cc/c++ "script" that cmake will find first, that actually does the filtering. I never could figure out a way to forcefully indicate the compiler that didn't break things. On 05/07/2010 12:47 PM, Chuck Atk

[CMake] VS6 generator: resource compilation MinSizeRel Bug

2010-05-10 Thread Michael Frommberger
Hi list, I'm trying to generate with CMake 2.8.1 on Windows XP a VS6 project which compiles a resource (OK ... I know VS6 is really old, but the company I'm working for is still using it ;-)). It works pretty well with Debug, Release and RelWithDebInfo. But with the MinSizeRel profile I got an