Re: [CMake] boost on windows

2008-10-28 Thread Andrew Maclean
For some reason in Windows the default inclde library is called Boost-1_36 not Boost_1_36. There have been several requests to fix FindBoost to include this variant (search the buglist). Andrew 2008/10/23 Emre Turkay <[EMAIL PROTECTED]>: > Hi folks, > I'm trying to compile boost with cmake and MS

Re: [CMake] configuring cmake with cygwin

2008-10-28 Thread Michael Jackson
If you want to jack cmake a bit look in the "share/cmake-xx/Modules/ Platform for the windows-icl.cmake file. In there are the "default" values for all the link flags and such. Edit that file. Clean out your build directory and try again. __

Re: [CMake] Phonon with an older version of CMake

2008-10-28 Thread Bill Hoffman
Alexander Solis wrote: You are correct, for phonon 2.6 works fine, but if I use 2.6 for the main project there are other thinks that get broken during compilation and we are very close to a deadline with not too much time in our hands :( -Wno-dev Here are some of the warnings I get when runn

Re: [CMake] Phonon with an older version of CMake

2008-10-28 Thread Alexander Solis
You are correct, for phonon 2.6 works fine, but if I use 2.6 for the main project there are other thinks that get broken during compilation and we are very close to a deadline with not too much time in our hands :( Here are some of the warnings I get when running the program with CMake2.6

Re: [CMake] Phonon with an older version of CMake

2008-10-28 Thread Bill Hoffman
Alexander Solis wrote: Sorry about that, you were right, I was missing the link to phonon. It solved the problem for CMake 2.6 but not for CMake 2.4. *Here is the make VERBOSE=1 using cmake 2.4:* * * So, can we get a make VERBOSE=1 comparison with the working 2.6 and the broken 2.4? Alth

Re: [CMake] Phonon with an older version of CMake

2008-10-28 Thread Alexander Solis
Sorry about that, you were right, I was missing the link to phonon. It solved the problem for CMake 2.6 but not for CMake 2.4. Here is the make VERBOSE=1 using cmake 2.4: /usr/local/bin/cmake -H/Users/telcentrisholdingsa/Desktop/video_cmake - B/Users/telcentrisholdingsa/Desktop/video_cmake --c

Re: [CMake] configuring cmake with cygwin

2008-10-28 Thread Bill Hoffman
THE HIGHHAT wrote: You should use the native windows binary for CMake from www.cmake.org with Unix Makefiles, and the modified make. Set CXX and CC to the correct compilers before running cmake. This combination will succesully generate the makefiles. The native cygwin make does not work thou

Re: [CMake] Phonon with an older version of CMake

2008-10-28 Thread clinton
It don't see you linking with phonon. Its typically done like this (using phonon support in CMake 2.6) find_package(Qt4) set(QT_USE_PHONON 1) include(${QT_USE_FILE}) add_executable(...) target_link_libraries(... ${QT_LIBRARIES}) Clint On Tuesday 28 October 2008 3:03:25 pm Alexander Solis w

Re: [CMake] Phonon with an older version of CMake

2008-10-28 Thread Alexander Solis
Ok, here are the results from the testing program I wrote. It looks like both CMake 2.4 and CMake 2.6 have the same problem with Phonon. Here is with CMake 2.4: /opt/local/bin/cmake -H/Users/telcentrisholdingsa/Desktop/video_cmake - B/Users/telcentrisholdingsa/Desktop/video_cmake --check-bu

Re: [CMake] add_custom_command rerun if arguments change via configuration

2008-10-28 Thread James Bigler
I think I've settled on using configure_file to generate a cmake script that executes the custom command for each add_custom_command that I care about. I'll then add a dependency to this cmake script. This way I can detect the changes in arguments for each individual command regardless of how the

Re: [CMake] configuring cmake with cygwin

2008-10-28 Thread THE HIGHHAT
> You should use the native windows binary for CMake from www.cmake.org with > Unix Makefiles, and the modified make. Set CXX and CC to the correct > compilers before running cmake. This combination will succesully generate the makefiles. The native cygwin make does not work though. Needed to u

Re: [CMake] Phonon with an older version of CMake

2008-10-28 Thread Bill Hoffman
Alexander Solis wrote: Yes I did. I even tried to compile a small program for testing with qmake and it works fine, but the same program with CMake doesn't compile. Can you do a make VERBOSE=1 with cmake 2.4 and 2.6 on an executable that fails? -Bill __

Re: [CMake] How is GetPreRequisites used?

2008-10-28 Thread David Cole
You are not being stupid. It does need to be used at installation time to be useful. The intent is to analyze a given built executable to determine the required set of (possibly 3rd-party, possibly built elsewhere on the build machine) libraries that it needs to run. Then, given that set, you need

Re: [CMake] Phonon with an older version of CMake

2008-10-28 Thread Alexander Solis
Yes I did. I even tried to compile a small program for testing with qmake and it works fine, but the same program with CMake doesn't compile. On Oct 28, 2008, at 1:44 PM, [EMAIL PROTECTED] wrote: Are you even linking with the phonon library? Having CMake find them is one thing. Linki

Re: [CMake] configuring cmake with cygwin

2008-10-28 Thread Bill Hoffman
THE HIGHHAT wrote: Any suggestions on how to get this combination to generate correct output: cmake 2.6.x on win32 via cygwin generating Unix Makefiles for c++ code compiling with Intel 10.x compilers executed from a cygwin shell ? I have run into a brick wall with tthis combination.

Re: [CMake] assembly files with masm in vs2005 64bit

2008-10-28 Thread Alexander Neundorf
Hi Bram, On Tuesday 28 October 2008, Bram de Greve wrote: ... > Hi Alex, > > On the nmake front: the problem with the unresolved symbols is one of > building a DLL instead of static library, and the symbols don't get > exported ... So, at least, I'm successful at using masm with nmake. > > That s

Re: [CMake] add_custom_command rerun if arguments change via configuration

2008-10-28 Thread David Cole
You imagine correctly. :-) We'll leave it up to the project CMakeLists authors... File level dependencies are easy to communicate to make-based or Visual-Studio-project-based build systems. Variable value changes, not so easy to communicate. But you don't want *all* custom commands to rebuild whe

[CMake] configuring cmake with cygwin

2008-10-28 Thread THE HIGHHAT
Any suggestions on how to get this combination to generate correct output: cmake 2.6.x on win32 via cygwin generating Unix Makefiles for c++ code compiling with Intel 10.x compilers executed from a cygwin shell ? I have run into a brick wall with tthis combination. There are cmake packa

Re: [CMake] add_custom_command rerun if arguments change via configuration

2008-10-28 Thread James Bigler
I haven't tried that, and I think it could work if I could make sure I kept track of all the possible variables that could go into making the arguments. Is there something fundamental about CMake that would prevent it from detecting this change? I'm guessing that CMake would have to keep a record

Re: [CMake] add_custom_command rerun if arguments change via configuration

2008-10-28 Thread David Cole
You should be able to configure a file into your binary directory that references all the option variables of interest and then make a dependency on that file for your add_custom_command. That way, the file will change only if one of the options changes in cmake and the dependency on it should tri

[CMake] add_custom_command rerun if arguments change via configuration

2008-10-28 Thread James Bigler
I have a project that makes use of a add_custom_command that generates some cpp files from a given input file. The command can have different arguments depending on some CMake OPTION variables. If I change the option variables from the CMake GUI, configure and regenerate the Visual Studio project

Re: [CMake] Phonon with an older version of CMake

2008-10-28 Thread clinton
Are you even linking with the phonon library? Having CMake find them is one thing. Linking with them is another. Clint On Tuesday 28 October 2008 1:03:49 pm Alexander Solis wrote: > Hi, > > I tried CMake 2.6 a long time ago and don't remember the errors/ > warning, since it is a large project

Re: [CMake] Phonon with an older version of CMake

2008-10-28 Thread Bill Hoffman
Alexander Solis wrote: Hi, I tried CMake 2.6 a long time ago and don't remember the errors/warning, since it is a large project it was decided to use CMake 2.4 instead. Using 2.4 cmake runs fine but when compiling (with make) I get the following error: Undefined symbols: "Phonon::Path::~P

Re: [CMake] Phonon with an older version of CMake

2008-10-28 Thread Alexander Solis
Hi, I tried CMake 2.6 a long time ago and don't remember the errors/ warning, since it is a large project it was decided to use CMake 2.4 instead. Using 2.4 cmake runs fine but when compiling (with make) I get the following error: Undefined symbols: "Phonon::Path::~Path()", referenced f

Re: [CMake] Path problem when building a jar file

2008-10-28 Thread Robert Haines
Hi again all, I should have added that I am using 2.6.0 and haven't seen any Java mentioned in the change-log since then... Cheers, Rob I am building a jar file but I can't get the paths right within it. I have a directory structure like this source-root/org/some/package/.java source-root/

Re: [CMake] Path problem when building a jar file

2008-10-28 Thread George Neill
Hi Robert, On Tue, Oct 28, 2008 at 1:07 PM, Robert Haines <[EMAIL PROTECTED]> wrote: > Hi all, > > I am building a jar file but I can't get the paths right within it. > > I have a directory structure like this > source-root/org/some/package/.java > source-root/org/some/other/.java > and I want the

Re: [CMake] Phonon with an older version of CMake

2008-10-28 Thread Bill Hoffman
Alexander Solis wrote: Hi, I am trying to compile an application that uses Qt4.4 Phonon's libraries with CMake 2.4 patch 6. I am using Mac OS X 10.5 I know that the version of CMake I am using doesn't include in the modules a way to find Phonon, so I added the necessary lines to find Phonon

[CMake] Path problem when building a jar file

2008-10-28 Thread Robert Haines
Hi all, I am building a jar file but I can't get the paths right within it. I have a directory structure like this source-root/org/some/package/.java source-root/org/some/other/.java and I want the compiled .class files to all go into the same jar file. If I have a CMakeLists.txt in source-root

[CMake] Phonon with an older version of CMake

2008-10-28 Thread Alexander Solis
Hi, I am trying to compile an application that uses Qt4.4 Phonon's libraries with CMake 2.4 patch 6. I am using Mac OS X 10.5 I know that the version of CMake I am using doesn't include in the modules a way to find Phonon, so I added the necessary lines to find Phonon from CMake 2.6.2 fil

Re: [CMake] SS12 and -xcode=pic32

2008-10-28 Thread George Neill
On Tue, Oct 28, 2008 at 8:40 AM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > George Neill wrote: > >>> >>> To set the record straight for others reading this in the future, please >>> do >>> exactly what I suggested (which works) rather than trying something else. >>> > Actually, to set the record st

[CMake] Best way to add command line parameters to compile and link step

2008-10-28 Thread Dieter Rosch
Hi, I am running CMake on AIX 64-bit. When compiling in 64 bit on AIX, one needs to add the the flag -q64 to the C and C++ compiler, and -X64 to the ar command. I was able to do it by copying the Modules/Platform/AIX.cmake file into my own directory, and overriding it with the CMAKE_USER_MA

Re: [CMake] binary directory?

2008-10-28 Thread David Cole
Just give ADD_SUBDIRECTORY a second argument that tells it where to put the corresponding binary directory structure. Something like: ADD_SUBDIRECTORY(../blah "${CMAKE_CURRENT_BINARY_DIR}/blah") (Assumes you do not also have an "ADD_SUBDIRECTORY(blah)" call and a "./blah" directory in addition to

Re: [CMake] How is GetPreRequisites used?

2008-10-28 Thread Mike Arthur
On Tuesday 28 October 2008 13:35:46 Michael Jackson wrote: > In what way are you trying to use GetPreRequisites? I have a Qt Based > app that uses GetPreRequisites indirectly through the OS X app bundle > building cmake module (BundleUtilities.cmake). > > I think on each system (Linux, OS X, Window

Re: [CMake] SS12 and -xcode=pic32

2008-10-28 Thread Bill Hoffman
George Neill wrote: To set the record straight for others reading this in the future, please do exactly what I suggested (which works) rather than trying something else. Actually, to set the record straight, your approach is not good in this case. It will, as George points out, use the pic f

Re: [CMake] How is GetPreRequisites used?

2008-10-28 Thread Michael Jackson
In what way are you trying to use GetPreRequisites? I have a Qt Based app that uses GetPreRequisites indirectly through the OS X app bundle building cmake module (BundleUtilities.cmake). I think on each system (Linux, OS X, Windows) there are different solutions. Which system are you workin

Re: [CMake] "CMAKE_MAKE_PROGRAM is not set"

2008-10-28 Thread Hendrik Sattler
Stephen Collyer schrieb: > I have some code that I've delivered to a 3rd party > who is now trying to build it. They're using Vista > and a Visual Studio 2008 environment, with cmake 2.6.1 > > They're getting the following errors when trying to run > cmake. It looks to me like an environment probl

[CMake] "CMAKE_MAKE_PROGRAM is not set"

2008-10-28 Thread Stephen Collyer
I have some code that I've delivered to a 3rd party who is now trying to build it. They're using Vista and a Visual Studio 2008 environment, with cmake 2.6.1 They're getting the following errors when trying to run cmake. It looks to me like an environment problem of some kind, but I've never seen

[CMake] How is GetPreRequisites used?

2008-10-28 Thread Mike Arthur
Perhaps I'm just being stupid but I can't see how this can be used as it needs to be called at installation time and I'm not aware that modules can be? Does anyone have a working example of how to install its outputted libraries? -- Cheers, Mike Arthur http://mikearthur.co.uk/ __

Re: [CMake] assembly files with masm in vs2005 64bit

2008-10-28 Thread Bram de Greve
> > > Message: 7 > Date: Mon, 27 Oct 2008 23:06:22 +0100 > From: Alexander Neundorf <[EMAIL PROTECTED]> > Subject: Re: [CMake] assembly files with masm in vs2005 64bit > To: cmake@cmake.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-6" > > Hi Bram, > > Please te

Re: [CMake] Fortran to C mapping module

2008-10-28 Thread Arjen Markus
Bill Hoffman wrote: George Neill wrote: Bill, On Mon, Oct 27, 2008 at 8:46 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: I have just checked in a module to help with the linking of Fortran from C. I would appreciate some feedback, and perhaps some testing with different Fortran compiler

Re: [CMake] Fortran to C mapping module

2008-10-28 Thread Carminati Federico
Hello, I usually compile on linux-like systems with -fno-second- underscore to avoid this problem. Best regards Federico Carminati CERN-PH 1211 Geneva 23 Switzerland Tel: +41 22 76 74959 Fax: +41 22 76 68505 Mobile: +41 76 487 4843 On 28 Oct 2008, at 03:26, Bill Hoffman wrote: George N

Re: [CMake] SS12 and -xcode=pic32

2008-10-28 Thread George Neill
Alan, On Tue, Oct 28, 2008 at 1:00 AM, Alan W. Irwin <[EMAIL PROTECTED]> wrote: > On 2008-10-27 15:27-0500 George Neill wrote: > >> Alan, >> >> On Mon, Oct 27, 2008 at 3:10 PM, Alan W. Irwin >> <[EMAIL PROTECTED]> wrote: >>> >>> On 2008-10-27 12:54-0500 George Neill wrote: >>> Hi All, >>