Re: [CMake] Cmake 2.8.1 error

2010-04-16 Thread Yonggang Luo
I am afraid I have solve the problem by modify the source code of cmake. So, CMake can set env vars. Just didn't do that. I have already if cdt is using Intel compiler it's will add the PATH env to eclipse build system. And also I found the eclipse target is a little old so make strange actions s

Re: [CMake] CMake 2.8.1 + Qt/Cocoa + OS X Problem -- qt_menu.nib not getting copied

2010-04-16 Thread Clinton Stimpson
On Apr 16, 2010, at 9:13 AM, David Cole wrote:On Fri, Apr 16, 2010 at 11:03 AM, Michael Wild wrote: The way BundleUtilities (that is, GetPrerequisites is actually doing the work here) is designed so far is to check for run-time dependencies using otool and similar utilities. Ho

Re: [CMake] CMake & Matlab

2010-04-16 Thread Matt McCormick
Bill Hoffman writes: > > > > Either way, it is necessary to > > build cmake from patched source. > > > > All the changes in that patch are in the Modules directory. So, no need > to patch cmake. Just create the changed files and use CMAKE_MODULE_PATH > to point to the patched versions of

Re: [CMake] CMake & Matlab

2010-04-16 Thread Bill Hoffman
Matt McCormick wrote: James C. Sutherland writes: I didn't apply the patch because I assumed that it had been fixed in 2.8.0 (which is what I am using). Is that not the case? ___ No, it has not been applied yet. I haven't tried the patch with

Re: [CMake] CMake 2.8.1 + Qt/Cocoa + OS X Problem -- qt_menu.nib not getting copied

2010-04-16 Thread Michael Wild
On 16. Apr, 2010, at 18:03 , David Cole wrote: > On Fri, Apr 16, 2010 at 11:22 AM, Michael Jackson < > mike.jack...@bluequartz.net> wrote: > >> While I agree with everything said I think a Qt Specific function for >> "deploying Apps", whether those are on Windows, OS X or linux, should be >> cre

Re: [CMake] How to build and link Externa Project with exported target

2010-04-16 Thread Nicola Brisotto
Hi Mike, I'm back to this topic because the second solution create some problem with qt-creator parser of cmake project. If I import the project I have no source file loaded so the solution is not ok for me. The first solution, "create the IMPORTED targets myself", means that I have to put some

Re: [CMake] Assembler flag support

2010-04-16 Thread Matthias Goesswein
Hello! Is there a variable like CMAKE_C_FLAGS_INIT for the assembler available? (e.g. CMAKE_ASM${ASM_DIALECT}_FLAGS_INIT) Did you try this one ? I didn't add any explicit support for that, but I think this should work autoamtically for any language support by cmake (if it doesn't, I'll fix it

Re: [CMake] Cmake 2.8.1 error

2010-04-16 Thread Bill Hoffman
罗勇刚(Yonggang Luo) wrote: Because of not pollute the system environment variables. so I was using batch files to set the PATH env variable, and also other variable. But One problem appeared, because once I was using cmake -G "Eclipse CDT4 - MinGW Makefiles" src to generate eclipse project files,

Re: [CMake] Cmake 2.8.1 error

2010-04-16 Thread David Cole
Yes, we hear. There did not seem to be a question in your original post... Is your problem at cmake configure time, build time, or run time? What is the error message you get? If you need to run your configure, build or test phases with a certain environment to get things to work, then that's u

Re: [CMake] CMake 2.8.1 + Qt/Cocoa + OS X Problem -- qt_menu.nib not getting copied

2010-04-16 Thread David Cole
On Fri, Apr 16, 2010 at 11:22 AM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > While I agree with everything said I think a Qt Specific function for > "deploying Apps", whether those are on Windows, OS X or linux, should be > created. The script would be at a higher level than BundleUti

Re: [CMake] Cmake 2.8.1 error

2010-04-16 Thread Yonggang Luo
IS there anyone hear the words? ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Re: [CMake] CMake 2.8.1 + Qt/Cocoa + OS X Problem -- qt_menu.nib not getting copied

2010-04-16 Thread Michael Jackson
While I agree with everything said I think a Qt Specific function for "deploying Apps", whether those are on Windows, OS X or linux, should be created. The script would be at a higher level than BundleUtilites as I would envision DeployQt4App.cmake calling BundleUtilities, checking the type

Re: [CMake] CMake 2.8.1 + Qt/Cocoa + OS X Problem -- qt_menu.nib not getting copied

2010-04-16 Thread David Cole
On Fri, Apr 16, 2010 at 11:03 AM, Michael Wild wrote: > > The way BundleUtilities (that is, GetPrerequisites is actually doing the > work here) is designed so far is to check for run-time dependencies using > otool and similar utilities. However, CMake can't possibly detect that > qt_menu.nib is

Re: [CMake] CMake 2.8.1 + Qt/Cocoa + OS X Problem -- qt_menu.nib not getting copied

2010-04-16 Thread Michael Wild
The way BundleUtilities (that is, GetPrerequisites is actually doing the work here) is designed so far is to check for run-time dependencies using otool and similar utilities. However, CMake can't possibly detect that qt_menu.nib is required since this file is loaded dynamically at run-time, so

Re: [CMake] CPack: NSIS: how to install files to APPDATA?

2010-04-16 Thread David Cole
On Fri, Apr 16, 2010 at 8:37 AM, Yegor Yefremov wrote: > I need to install some configuration files to application data directory. I > found following variable in NSIS docs ( > http://nsis.sourceforge.net/Docs/Chapter4.html) as $APPDATA: > > "The application data directory. Detection of the curre

Re: [CMake] CMake 2.8.1 + Qt/Cocoa + OS X Problem -- qt_menu.nib not getting copied

2010-04-16 Thread Michael Jackson
Lets take a deeper look at what is needed for an OS X bundle, cmake and Qt. The issues with making an OS X app bundle "relocatable" are well known (those following along at home can Google search..). If you are including libraries into the bundle then the "install_name" of those librarie

Re: [CMake] CMake 2.8.1 + Qt/Cocoa + OS X Problem -- qt_menu.nib not getting copied

2010-04-16 Thread kent williams
If you have the URL of this example, I'd love to look at it. I have been poring over the CMake wiki without finding anything. But that's not what I was concerned about. What bothers me is that: 1, If you build against Qt-Carbon, this isn't a problem. 2. if qtmenu.nib is needed, and it isn't being

[CMake] CPack: NSIS: how to install files to APPDATA?

2010-04-16 Thread Yegor Yefremov
I need to install some configuration files to application data directory. I found following variable in NSIS docs (http://nsis.sourceforge.net/Docs/Chapter4.html) as $APPDATA: "The application data directory. Detection of the current user path requires Internet Explorer 4 and above. Detection o

Re: [CMake] Project dependencies

2010-04-16 Thread Benjamin Eikel
Hello, maybe my first post was not clear enough. I created a minimal example to demonstrate what I mean (see attached files). That example contains a library called MyLib and a binary called MyBin. The enclosed shell script can be used to build the binary on Linux. At first the library will be c

[CMake] Cmake 2.8.1 error

2010-04-16 Thread Yonggang Luo
Because of not pollute the system environment variables. so I was using batch files to set the PATH env variable, and also other variable. But One problem appeared, because once I was using cmake -G "Eclipse CDT4 - MinGW Makefiles" src to generate eclipse project files, I can't build the project b