Re: [CMake] Command line too long under Windows

2008-10-16 Thread Martin Apel
Brad King wrote: Brad King wrote: CMake once just listed the object files on the command line in the makefile, but users hit command line length limits with several hundred object files. We solved the problem by listing the objects in a response file. Now it looks like you've hit

[CMake] C# Support in CMake

2008-10-16 Thread Mathieu Malaterre
Hi there, I have started a limited support for C# in my project: https://gdcm.svn.sf.net/viewvc/gdcm/trunk/CMake/FindCSharp.cmake?view=markup https://gdcm.svn.sf.net/viewvc/gdcm/trunk/CMake/UseCSharp.cmake?view=markup Because this is already becoming tedious, I was wondering if anyone had

Re: [CMake] C# Support in CMake

2008-10-16 Thread Maik Beckmann
Mathieu Malaterre schrieb am Donnerstag 16 Oktober 2008 um 15:42: Hi there, I have started a limited support for C# in my project: https://gdcm.svn.sf.net/viewvc/gdcm/trunk/CMake/FindCSharp.cmake?view=marku p https://gdcm.svn.sf.net/viewvc/gdcm/trunk/CMake/UseCSharp.cmake?view=markup

Re: [CMake] CPack 2.6.2: can't create temporary directory

2008-10-16 Thread David Cole
Issue 7000 still needs a bit more work to address some of the comments in the many notes. I'm not sure about 7410, I'll have to take a look at it... Thanks for confirming that this works for you, David On Wed, Oct 15, 2008 at 11:16 PM, Petri Hodju [EMAIL PROTECTED] wrote: Hi! I can confirm

Re: [CMake] MSVC71 WholeProgramOptimization flag (/LTCG) fixed?

2008-10-16 Thread Luke Kucalaba
Simon, I completely agree with your assessment. The problem is entirely in that the linker flag /LTCG is not being passed to the static library linker command-line arguments. For executable projects and shared libraries (dlls), the /LTCG flag is passed to the linker correctly (it appears in the

Re: [CMake] Command line too long under Windows

2008-10-16 Thread Brad King
Martin Apel wrote: Please try building from CVS HEAD to make sure it fixes your problem. thanks for your quick fix. I tried it out with both generators and it works fine! Will this fix make it into 2.6.3? Yes, I think so. -Brad ___ CMake

[CMake] Non compiled sources in add_executable

2008-10-16 Thread James Bigler
So I have a command: add_custom_command( OUTPUT myfile.blah MAIN DEPENDENCY myfile.orig COMMAND ... ) Then I add the file to a target: add_executable(myexec myexec.c myfile.blah) If myfile.blah disappears and I build myexec via VS, it remakes myfile.blah, but if the custom command to

[CMake] CPack NSIS installer requires CPACK_PACKAGE_EXECUTABLES entry?

2008-10-16 Thread Sam Baker
I'm using CPack (CMake 2.6.2) for the first time and I have a flat install directory with my executable and some dlls. I want my start menu shortcuts (Win XP) to run the executable from the install folder and not from a bin subfolder. It appears that: - CPACK_PACKAGE_EXECUTABLES

[CMake] what happens when add_custom_command returns non zero

2008-10-16 Thread James Bigler
So what happens when add_custom_command returns non zero? Is the output file supposed to be removed? I have a command that returns -1, but happens to leave a partially written file. Should CMake delete the file for me when the command fails? Thanks, James

Re: [CMake] what happens when add_custom_command returns non zero

2008-10-16 Thread David Cole
That depends. Do you want it to be easy or hard to diagnose the failure... :-) (I suppose you could concoct a case where leaving the file would make it easier to diagnose and another case where deleting it would make it easier...) CMake didn't write the file, why should it delete it? Shouldn't

Re: [CMake] what happens when add_custom_command returns non zero

2008-10-16 Thread James Bigler
I'll grant you that I believe the tool should remove the partially written file, but the tool is out of my hands. So let's say I do this for a work around. 1. Set the output file as a temporary file. 2. Add a second command that moves the temporary file to the desired output file. Questions:

[CMake] set_target_properties with Xcode

2008-10-16 Thread Ben Ratzlaff
I cannot seem to get the following to work when using the Xcode generator (Unix Makefile and Visual Studio ones work fine) SET_TARGET_PROPERTIES (${PLUGIN_NAME} PROPERTIES LINK_FLAGS -L${LIBRARY_OUTPUT_PATH}/.. LINK_FLAGS_DEBUG X LINK_FLAGS_RELEASE YY

[CMake] Adding support for new languages to CMake

2008-10-16 Thread Eric (Brad) Lemings
Where can I find info/tutorials on adding support for new languages to CMake? Thanks, Eric. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

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

2008-10-16 Thread Alan W. Irwin
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 the CMake source tree. Pick a

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

2008-10-16 Thread Eric (Brad) Lemings
On Oct 16, 2008, at 8:08 PM, Alan W. Irwin [EMAIL PROTECTED] 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.

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

2008-10-16 Thread Werner Smekal
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 wrote that he is working on a c# implementation: