Re: [CMake] Random BAD_COMMAND error when running CTest

2008-10-17 Thread Ian Mackenzie
On Fri, Oct 17, 2008 at 10:09 PM, Alan W. Irwin <[EMAIL PROTECTED]> wrote: > One potential source of randomness is failing or iffy hardware. > > Have you kept track of such things as systematic changes in system > temperature under the same load conditions? I must clean out the dust from > one of m

Re: [CMake] Random BAD_COMMAND error when running CTest

2008-10-17 Thread Alan W. Irwin
On 2008-10-17 20:27-0400 Ian Mackenzie wrote: I'm getting a strange, random error when running CTest...I've searched all over and haven't been able to find anybody else with the same problem. [...]Each individual test executable runs fine, and none of them include any randomness (e.g. generat

[CMake] Random BAD_COMMAND error when running CTest

2008-10-17 Thread Ian Mackenzie
I'm getting a strange, random error when running CTest...I've searched all over and haven't been able to find anybody else with the same problem. When I run a bunch of tests, some or all of them frequently fail with a BAD_COMMAND error message. For instance, running ctest just now gave me --

Re: [CMake] CPack NSIS installer requires CPACK_PACKAGE_EXECUTABLES entry?

2008-10-17 Thread David Cole
On Thu, Oct 16, 2008 at 4:25 PM, Sam Baker <[EMAIL PROTECTED]>wrote: > > Is this the expected behavior or am I missing something? > Neither. It appears to be a bug... We'll have to keep supporting the "bin" folder for backwards compatibility, but I think it would be a great feature request to use C

Re: [CMake] Adding support for new languages to CMake

2008-10-17 Thread Eric (Brad) Lemings
Alan W. Irwin wrote: > On 2008-10-16 18:08-0600 Eric (Brad) Lemings wrote: > >> >> Where can I find info/tutorials on adding support for new languages to >> CMake? > > The following is pretty minimal, but I think this is all there is at the > moment. > > Look at Modules/CMakeAddNewLanguage.txt in t

Re: [CMake] Initial C# support (was Re: Adding support for new languages to CMake)

2008-10-17 Thread Mathieu Malaterre
Hi David, On Sat, Oct 18, 2008 at 12:27 AM, David Cole <[EMAIL PROTECTED]> wrote: > I use ADD_CUSTOM_COMMAND to specify the exact C# compiler command line that > I want... That's what I was saying, this is *very* cumbersome. I need to handle the optimization flag, the linking, specify whether thi

Re: [CMake] Initial C# support (was Re: Adding support for new languages to CMake)

2008-10-17 Thread David Cole
I use ADD_CUSTOM_COMMAND to specify the exact C# compiler command line that I want... There is much more to full C# language support than just getting it to compile/link successfully. (Involving .csproj files vs. .vcproj files, resources, references, strong naming, blah, blah, blah.) HTH, Dav

Re: [CMake] unusual strings

2008-10-17 Thread David Cole
CMake does not support "C" style string constants like that. It supports escaping of a specific set of characters with the \ character. \\ \" \n and \$ are all valid escape sequences. I will have to look up in the source code to see what other valid escape sequences there are, but octal strings ar

Re: [CMake] Adding support for new languages to CMake

2008-10-17 Thread Alan W. Irwin
On 2008-10-17 12:34-0600 Eric (Brad) Lemings wrote: Eric (Brad) Lemings wrote: Alan W. Irwin wrote: On 2008-10-16 18:08-0600 Eric (Brad) Lemings wrote: Where can I find info/tutorials on adding support for new languages to CMake? The following is pretty minimal, but I think this is all t

Re: [CMake] Adding support for new languages to CMake

2008-10-17 Thread Eric (Brad) Lemings
Eric (Brad) Lemings wrote: > Alan W. Irwin wrote: > >> On 2008-10-16 18:08-0600 Eric (Brad) Lemings wrote: >> >> >>> Where can I find info/tutorials on adding support for new languages to >>> CMake? >>> >> The following is pretty minimal, but I think this is all there is at the >> mo

Re: [CMake] Adding support for new languages to CMake

2008-10-17 Thread Eric (Brad) Lemings
Alan W. Irwin wrote: > On 2008-10-16 18:08-0600 Eric (Brad) Lemings wrote: > >> >> Where can I find info/tutorials on adding support for new languages to >> CMake? > > The following is pretty minimal, but I think this is all there is at the > moment. > > Look at Modules/CMakeAddNewLanguage.txt in t

Re: [CMake] ASM issue: regression from 2.6.0 to 2.6.2?

2008-10-17 Thread Alexander Neundorf
Hi, On Friday 17 October 2008, Alexander Neundorf wrote: > On Thursday 16 October 2008, you wrote: > ... > > > > Btw. why do you need CMAKE_FORCE_C_COMPILER, i.e. why doesn't "arm- > > > elf-gcc > > > main.c" work ? > > > > I really don't know ;-) > > > > This is one of the oldest directive I've c

Re: [CMake] Updated WinCE CMakefiles

2008-10-17 Thread Alexander Neundorf
On Tuesday 14 October 2008, Andreas Pokorny wrote: > Hello, > > 2008/10/14 Alexander Neundorf <[EMAIL PROTECTED]>: > > [...] > > For the files in Platform/ : > > > > Why did you create Generic-Windows.cmake and Generic-Windows-cl.cmake ? > > Until now the "Generic-" prefix is used as the name of th

Re: [CMake] ASM issue: regression from 2.6.0 to 2.6.2?

2008-10-17 Thread Alexander Neundorf
On Thursday 16 October 2008, you wrote: ... > > Btw. why do you need CMAKE_FORCE_C_COMPILER, i.e. why doesn't "arm- > > elf-gcc > > main.c" work ? > > I really don't know ;-) > > This is one of the oldest directive I've copied from a web site > example about how to perform cross-compilation with CM

Re: [CMake] Problem with ADD_CUSTOM_COMMAND and compiler

2008-10-17 Thread Alexander Neundorf
On Friday 17 October 2008, [EMAIL PROTECTED] wrote: > Hi, > I try to generate preprocessed files with gcc (gcc -E) and > ADD_CUSTOM_COMMAND. I use INCLUDE_DIRECTORIES in order to specify where the > include files are but this has not effect and so gcc generates an error : CMake generates rules to

Re: [CMake] Private macros

2008-10-17 Thread Alexander Neundorf
On Friday 17 October 2008, Markus Mehrwald wrote: > Hello everyone, > > I wrote a macro which does some initialisations and things needed before > using my actual macros. Is it possible to prevent normal user to call > this init macro and only use it internally in my own macros? Not really. Mark i

Re: [CMake] Initial C# support (was Re: Adding support for new languages to CMake)

2008-10-17 Thread Alexander Neundorf
On Friday 17 October 2008, Mathieu Malaterre wrote: ... > Quick question, here is how one create executable in C#: > > SET(CMAKE_CSharp_LINK_EXECUTABLE > " -out:.exe > ") > > The problem here is that i need to prepend each added libary using > "/r" , I could not figure out which flag dictat

[CMake] unusual strings

2008-10-17 Thread Micha Renner
Hello, what is wrong with this command: SET(INVALID_PATH_CHAR "\001\002\003\004\005\006\007\010\011\012\013\014 \015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036 \037 \177/") Resulting error: syntax error, unexpected cal_ERROR, expecting $end (127), when parsing string "\

[CMake] Problem with ADD_CUSTOM_COMMAND and compiler

2008-10-17 Thread [EMAIL PROTECTED]
Hi, I try to generate preprocessed files with gcc (gcc -E) and ADD_CUSTOM_COMMAND. I use INCLUDE_DIRECTORIES in order to specify where the include files are but this has not effect and so gcc generates an error : ADD_CUSTOM_COMMAND(OUTPUT hello.pp.c COMMAND ${CMAKE_C_COMPILER} -E hello.c > hello.

[CMake] Private macros

2008-10-17 Thread Markus Mehrwald
Hello everyone, I wrote a macro which does some initialisations and things needed before using my actual macros. Is it possible to prevent normal user to call this init macro and only use it internally in my own macros? Thanks, Markus ___ CMake mailing

Re: [CMake] Initial C# support (was Re: Adding support for new languages to CMake)

2008-10-17 Thread Mathieu Malaterre
On Fri, Oct 17, 2008 at 11:24 AM, Mathieu Malaterre <[EMAIL PROTECTED]> wrote: >>> just yesterday Mathieu Malaterre wrote that he is working on a c# >>> implementation: http://www.mail-archive.com/cmake@cmake.org/msg16699.html >> >> Pretty funny :) >> Anyway I did contact (private email) Eric, and

[CMake] Initial C# support (was Re: Adding support for new languages to CMake)

2008-10-17 Thread Mathieu Malaterre
>> just yesterday Mathieu Malaterre wrote that he is working on a c# >> implementation: http://www.mail-archive.com/cmake@cmake.org/msg16699.html > > Pretty funny :) > Anyway I did contact (private email) Eric, and will try to get things going. Ok I got the try compile + building executable workin

Re: [CMake] How to add non-source files to a Visual Studio project?

2008-10-17 Thread Eric Noulard
2008/10/17 Andrew Fenn <[EMAIL PROTECTED]>: > This method will generate a visual studio sln with the project lib1 inside. > > Whatever you want to add to the project lib1 put it into lib1_source > before it calls add_library(lib1, [source files]) Yes now I understand, the fact is the "non sources

Re: [CMake] How to add non-source files to a Visual Studio project?

2008-10-17 Thread Andrew Fenn
This method will generate a visual studio sln with the project lib1 inside. Whatever you want to add to the project lib1 put it into lib1_source before it calls add_library(lib1, [source files]) On Fri, Oct 17, 2008 at 3:52 PM, Eric Noulard <[EMAIL PROTECTED]> wrote: > Hi Andrew, > > Sorry, but I

Re: [CMake] How to add non-source files to a Visual Studio project?

2008-10-17 Thread Eric Noulard
Hi Andrew, Sorry, but I do not understand your answer? I have no problem for writing CMakeLists.txt files for lib1/lib2/app1/app2 I dot not know how to add non-source file to a Visual Studio project generated with CMake. -- Erk ___ CMake mailing lis

Re: [CMake] How to add non-source files to a Visual Studio project?

2008-10-17 Thread Andrew Fenn
Put this in your cmakelists.txt SET(Required_Packages lib1 lib2 ) FOREACH(Package ${Required_Packages}) FIND_PACKAGE(${Package} REQUIRED) IF (${Package}_FOUND) INCLUDE_DIRECTORIES(${${Package}_INCLUDE_DIR}) IF (${Package}_LIBRARIES) TARGET_LINK_LIBRARIES(har

[CMake] How to add non-source files to a Visual Studio project?

2008-10-17 Thread Eric Noulard
Hi All, I have a project which has a structure similar to: project/src/lib1 /src/lib2 /src/app1 /src/app2 /initFiles each subdir has its own CMakeLists.txt the content of project/initFiles are files which are CONFIGUREd (with CONFIGURE_FILE) and INSTALLed

Re: [CMake] Adding support for new languages to CMake

2008-10-17 Thread Mathieu Malaterre
On Fri, Oct 17, 2008 at 7:54 AM, Werner Smekal <[EMAIL PROTECTED]> wrote: > Hi Eric, >> >> Thanks for the pointers. >> >> Delphi and C#. Laughable no doubt but important to my current work. >> >> If anyone is aware of relevant "prior art", please post links! > > just yesterday Mathieu Malaterre wr