Re: [CMake] using cmake to link window lib and dll files

2009-11-16 Thread Cheng Zhigao
Thanks a lot. It helps. Regards, zhigao From: Michael Jackson [mike.jack...@bluequartz.net] Sent: Monday, November 16, 2009 11:02 PM To: Cheng Zhigao Cc: cmake@cmake.org Subject: Re: [CMake] using cmake to link window lib and dll files You will need to cre

[CMake] Fortran project problem (static linking)

2009-11-16 Thread DONG Li
Hi all, I am trying to use CMake as my Fortran project build tool, it is a wonderful project guard!. But a annoying problem comes up. I searched all around the internet, but no easy document for me : (. Since I want to use static-linking, the Intel Fortran compiler complains "undefined re

Re: [CMake] Cmake 2.8 and cross compilation

2009-11-16 Thread Alexander Neundorf
On Monday 16 November 2009, Emmanuel Blot wrote: > > If the file needs to be preprocessed, set the LANGUAGE source file > > property to C, this should work in most cases for now. > > Yes they (many of them) do > > Is there anyway in CMake to tell something like "all .S file should be > built with G

Re: [CMake] Cmake 2.8 and cross compilation

2009-11-16 Thread Alexander Neundorf
On Monday 16 November 2009, Emmanuel Blot wrote: > > Can you create a bug entry for this? > > Sure, I'll do it > > > As a quick fix I think if you set CMAKE_OSX_DEPLOYMENT_TARGET to empty it > > will stop CMake form doing this.  You should be able to do that either in > > the cache or in your proj

Re: [CMake] CTest delayed initialization (was: CTEST_CUSTOM_TESTS_IGNORE in CTestCustom.cmake ignored in script mode)

2009-11-16 Thread Maik Beckmann
2009/11/16 Brad King : > > Please update this issue: > >  http://www.cmake.org/Bug/view.php?id=9450 > > Thanks, > -Brad Done, thanks for the pointer -- Maik ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.

Re: [CMake] CTest delayed initialization (was: CTEST_CUSTOM_TESTS_IGNORE in CTestCustom.cmake ignored in script mode)

2009-11-16 Thread Brad King
Maik Beckmann wrote: > Oops, missed to cc to the mailing list > > 2009/11/16 Maik Beckmann : >> 2009/11/16 Bill Hoffman : >>> But, that is not happening in my script. It is ending up on the correct >>> my.cdash.org LAPACK dashboard when I run this script. I am sure there is a >>> bug in here so

Re: [CMake] [ctest] CTEST_CUSTOM_TESTS_IGNORE in CTestCustom.cmake ignored in script mode (ctest -S)

2009-11-16 Thread Maik Beckmann
Oops, missed to cc to the mailing list 2009/11/16 Maik Beckmann : > 2009/11/16 Bill Hoffman : >> But, that is not happening in my script.   It is ending up on the correct >> my.cdash.org LAPACK dashboard when I run this script.  I am sure there is a >> bug in here somewhere, just not sure where...

Re: [CMake] [ctest] CTEST_CUSTOM_TESTS_IGNORE in CTestCustom.cmake ignored in script mode (ctest -S)

2009-11-16 Thread Bill Hoffman
Bill Hoffman wrote: Maik Beckmann wrote: 2009/11/16 Maik Beckmann : 2009/11/16 Bill Hoffman : http://my.cdash.org/viewNotes.php?buildid=38044 If nothing is checked out, it will checkout the code, then read the config file after that. Checking your script now.. I see, CTEST_PROJECT_NAME i

Re: [CMake] [ctest] CTEST_CUSTOM_TESTS_IGNORE in CTestCustom.cmake ignored in script mode (ctest -S)

2009-11-16 Thread Bill Hoffman
Maik Beckmann wrote: 2009/11/16 Maik Beckmann : 2009/11/16 Bill Hoffman : http://my.cdash.org/viewNotes.php?buildid=38044 If nothing is checked out, it will checkout the code, then read the config file after that. Checking your script now.. I see, CTEST_PROJECT_NAME is set in this script.

Re: [CMake] [ctest] CTEST_CUSTOM_TESTS_IGNORE in CTestCustom.cmake ignored in script mode (ctest -S)

2009-11-16 Thread Maik Beckmann
2009/11/16 Maik Beckmann : > 2009/11/16 Bill Hoffman : >> http://my.cdash.org/viewNotes.php?buildid=38044 >> >> If nothing is checked out, it will checkout the code, then read the config >> file after that. > > Checking your script now.. I see, CTEST_PROJECT_NAME is set in this script. If I do th

Re: [CMake] Cmake 2.8 and cross compilation

2009-11-16 Thread Emmanuel Blot
> Can you create a bug entry for this? Sure, I'll do it > As a quick fix I think if you set CMAKE_OSX_DEPLOYMENT_TARGET to empty it > will stop CMake form doing this.  You should be able to do that either in > the cache or in your project. Ok, it seems to work, thanks for the workaround. Now t

Re: [CMake] [ctest] CTEST_CUSTOM_TESTS_IGNORE in CTestCustom.cmake ignored in script mode (ctest -S)

2009-11-16 Thread Maik Beckmann
2009/11/16 Bill Hoffman : > http://my.cdash.org/viewNotes.php?buildid=38044 > > If nothing is checked out, it will checkout the code, then read the config > file after that.  I think I may close that bug.  Can you describe exactly > what is not working for you? > I get this error message {{{ Canno

Re: [CMake] [ctest] CTEST_CUSTOM_TESTS_IGNORE in CTestCustom.cmake ignored in script mode (ctest -S)

2009-11-16 Thread Bill Hoffman
Maik Beckmann wrote: 2009/11/14 Bill Lorensen : IN itk this is what we typically do in ctest scripts. After CTEST_CONFIGURE (BUILD "${CTEST_BINARY_DIRECTORY}") place CTEST_READ_CUSTOM_FILES("${CTEST_BINARY_DIRECTORY}") Sweet! This solves the CTestCustom.cmake issue with ctest -S. Is there a

Re: [CMake] Cmake 2.8 and cross compilation

2009-11-16 Thread Bill Hoffman
Emmanuel Blot wrote: Hi All, I've just upgraded my CMake installation to 2.8.0, as my collegues reported me some compilation errors with the new release of CMake (they use Debian/unstable). Before I'm able to reproduce the same error they got, I got another error, on Mac OS X hosts. It seems th

Re: [CMake] Simple example of IMPILICIT_DEPENDS?

2009-11-16 Thread Michael Wild
On 16. Nov, 2009, at 16:43 , lists_r...@lavabit.com wrote: Hello, Does anyone have a reasonably simple example of using add_custom_command with IMPLICIT_DEPENDS that invokes the CXX scanner? The two examples I found via Google do not lead themselves to easy simplification. My goal is to ru

[CMake] Simple example of IMPILICIT_DEPENDS?

2009-11-16 Thread lists_ravi
Hello, Does anyone have a reasonably simple example of using add_custom_command with IMPLICIT_DEPENDS that invokes the CXX scanner? The two examples I found via Google do not lead themselves to easy simplification. My goal is to run a custom command that takes as arguments some explicitly named

Re: [CMake] using cmake to link window lib and dll files

2009-11-16 Thread Michael Jackson
You will need to create an "install" command that copies the library into the runtime directory. There are lots of examples in the email archives. Here is what I do for the Qt libraries: if (AIM_BUILD_QT_APPS AND NOT Q_WS_MAC) if (DEFINED QT_QMAKE_EXECUTABLE) SET (QTLIBLIST QtCore

[CMake] Cmake 2.8 and cross compilation

2009-11-16 Thread Emmanuel Blot
Hi All, I've just upgraded my CMake installation to 2.8.0, as my collegues reported me some compilation errors with the new release of CMake (they use Debian/unstable). Before I'm able to reproduce the same error they got, I got another error, on Mac OS X hosts. It seems that CMake 2.8.0 forces c