Re: [CMake] Invoking an script from the link command.

2008-08-13 Thread Óscar Fuentes
Óscar Fuentes <[EMAIL PROTECTED]> writes: > Bill Hoffman <[EMAIL PROTECTED]> > writes: [about using shell backquotes embedded on link commands through `target_link_libraries'] >> I don't even think this will work with cmake 2.6.0, because we use >> link scripts. > > It is working with 2.6.1 and

[CMake] Re-executing CMake from the Makefile.

2008-08-13 Thread Óscar Fuentes
Currently, when `make' is executed and a CMakeList.txt file is out of date, `cmake' is automatically invoked and then `make' continues. Is it possible to do this (on a reliable way) with an arbitrary file? I need to re-execute `cmake' whenever certain file changes. I wonder if is possible to do th

[CMake] hpux (cma vs. pthreads)

2008-08-13 Thread George Neill
Hi All, I am trying to compile a multi-threaded app (using pthreads) on hpux 11.23 IA -- CMAKE_SYSTEM ...HP-UX-B.11.23 -- CMAKE_SYSTEM_NAME...HP-UX -- CMAKE_SYSTEM_VERSION ...B.11.23 -- CMAKE_C_COMPILER: ...

Re: [CMake] ctest 'magic string' -> failure

2008-08-13 Thread Alan W. Irwin
On 2008-08-13 20:20-0500 Matthew Woehlke wrote: Is there any way to arrange for running ctest to mark a test as failed if it outputs a particular string? I'm using ctest to write unit tests for a library that has some debugging facilities where if something goes wrong, it dumps an error messag

Re: [CMake] ctest 'magic string' -> failure

2008-08-13 Thread Bill Hoffman
Matthew Woehlke wrote: Is there any way to arrange for running ctest to mark a test as failed if it outputs a particular string? I'm using ctest to write unit tests for a library that has some debugging facilities where if something goes wrong, it dumps an error message, but doesn't cause the f

Re: [CMake] ctest 'magic string' -> failure

2008-08-13 Thread David Cole
I use: SET_TESTS_PROPERTIES(${name} PROPERTIES FAIL_REGULAR_EXPRESSION "(ERROR|Warning): In" ) which will cause the test to fail if the string "ERROR: In" or "Warning: In" occurs in the test output. ${name} should be the name of the test as passed to ADD_TEST, and the argument after FAIL

[CMake] ctest 'magic string' -> failure

2008-08-13 Thread Matthew Woehlke
Is there any way to arrange for running ctest to mark a test as failed if it outputs a particular string? I'm using ctest to write unit tests for a library that has some debugging facilities where if something goes wrong, it dumps an error message, but doesn't cause the function to fail, so I c

[CMake] [PATCH] FindLua5x header documentation fix

2008-08-13 Thread Félix C. Morency
Hi, This is a small fix to FindLua5x header documentation. Cheers, Félix C. Morency ? findLua5x_headerDocFix.patch Index: FindLua50.cmake === RCS file: /cvsroot/CMake/CMake/Modules/FindLua50.cmake,v retrieving revision 1.4 diff

[CMake] FindCurses missing stuff

2008-08-13 Thread Félix C. Morency
Hi, The current FindCurses module doesn't support the wide char version of the libraries (cursesw/ncursesw). I would like to hear your point of view about how to add this to the current module. Regards, Félix C. Morency ___ CMake mailing list CMake@cmak

Re: [CMake] INSTALL(EXPORT)

2008-08-13 Thread Rupert Brooks
Thanks Brad, I will either export them as i go, or store them in a variable, and export that list at the end. > > FYI, I am planning to construct build-tree and install-tree export rules > for upstream VTK and ITK once we require CMake 2.6. I guess I am impatient ;-). The reason that I am tryi

[CMake] vista nsis issue

2008-08-13 Thread Mark Turney
Hello, I'm working on a C++/Boost/QT4 application for unix, osx, and windows. I am currently using cpack / nsis to create the installer for windows. During installation on Vista, I am given a dialog titled "This program might not have installed correctly" that supplies two user options "Reinstal

Re: [CMake] FindQt3.cmake bug - does not recognize uic

2008-08-13 Thread Anka Kochanowska
Hi! Just to let you know - in cmake 2.6 it works perfectly again:-) Anka [EMAIL PROTECTED] wrote: On Tuesday 27 November 2007 8:21:38 am Anka Kochanowska wrote: Hi! I am using Qt3 (3.3.3) In my CMakeList.txt I have conditionals: IF(QT_WRAP_UI) QT_WRAP_UI( Basic IGNS_BASIC_HDR IGNS_BASIC_S

Re: [CMake] INSTALL(EXPORT)

2008-08-13 Thread Brad King
Rupert Brooks wrote: > One last question. Is there a way to retrieve the list of objects > that have been put in the EXPORT parameter of various install > commands? Basically i would like to use > > EXPORT(TARGETS FILE ...) > > to get a file in the build directory equivalent to the file i

Re: [CMake] deleting a cache variable from within CMake script

2008-08-13 Thread Yuri V. Timenkov
On Wednesday 13 August 2008 15:55:32 Philip Lowman wrote: > On Wed, Aug 13, 2008 at 3:50 AM, Yuri V. Timenkov > > <[EMAIL PROTECTED]>wrote: > > Why not find two libraries always and and then use > > set(${module_uc}_LIBRARY debug ${module_uc}_LIBRARY_DEBUG optimized > > ${module_uc}_LIBRARY_RELEASE

Re: [CMake] INSTALL(EXPORT)

2008-08-13 Thread Rupert Brooks
Thanks Brad, One last question. Is there a way to retrieve the list of objects that have been put in the EXPORT parameter of various install commands? Basically i would like to use EXPORT(TARGETS FILE ...) to get a file in the build directory equivalent to the file i would get from. INST

Re: [CMake] SWIG support throughts : naming conventions

2008-08-13 Thread Mathieu Malaterre
On Fri, Aug 8, 2008 at 3:33 PM, Antoine PREVOT <[EMAIL PROTECTED]> wrote: > Hi again, > > I am still struggling with SWIG, and tested various things. Since > UseSWIG.cmake seems quite similar from 2.4 to 2.6-1, here are some throughts > I had while using it. > > I don't know if my patches are rel

Re: [CMake] CPack DEB generator: Installed-Size field

2008-08-13 Thread Mathieu Malaterre
Rudoy, This must be a new requirement by newer apt-* stuff. Have a look at cmCPackDebGenerator.cxx. The code is pretty straighforward. You simply have to add the function that compute the size and then simply insert it at the right position. If you get it working, please send the patch back

Re: [CMake] deleting a cache variable from within CMake script

2008-08-13 Thread Philip Lowman
On Wed, Aug 13, 2008 at 3:50 AM, Yuri V. Timenkov <[EMAIL PROTECTED]>wrote: > Why not find two libraries always and and then use > set(${module_uc}_LIBRARY debug ${module_uc}_LIBRARY_DEBUG optimized > ${module_uc}_LIBRARY_RELEASE) > This way CMake will use proper libraries for debug and release mo

Re: [CMake] CMake Java configuration error on Linux, working fine on Mac and Windows.

2008-08-13 Thread Mathieu Malaterre
Actually if you simply copy/paste your error message, I believe you made a case-sensitive type, try: FIND_PACKAGE(Java) instead of FIND_PACKAGE(JAVA) :) 2cts On Wed, Aug 13, 2008 at 1:49 PM, Mathieu Malaterre <[EMAIL PROTECTED]> wrote: > It simply means that java (javac ?) was not found on the l

Re: [CMake] CMake Java configuration error on Linux, working fine on Mac and Windows.

2008-08-13 Thread Mathieu Malaterre
It simply means that java (javac ?) was not found on the linux system. if you ccmake and/or make edit_cache you'll see that some JAVA required inputs are missing. HTH On Wed, Aug 13, 2008 at 2:23 AM, Andy Somogyi <[EMAIL PROTECTED]> wrote: > Hello > > I'm working on a c++ / JNI application which

[CMake] KDE3 package forces -Wall flag

2008-08-13 Thread Alexander Thomas
I'm working on a project that uses Qt3, and for some reason, the "-Wall" flag is automatically appended when the following line occurs in CMakeLists.txt: find_package(KDE3 REQUIRED) Normally I write my code such that no warnings show up even with "-Wall" enabled. However, the majority of thi

Re: [CMake] deleting a cache variable from within CMake script

2008-08-13 Thread Yuri V. Timenkov
On Wednesday 13 August 2008 07:27:15 Philip Lowman wrote: > Is there a way to have CMake script delete a cache variable? I do realize > CMake allows me to do this: > > 1. hide it away as an internal cache variable > 2. mark it as advanced and bury it > 3. set it to FOO-NOTFOUND prior to calling FI

[CMake] ld: library not found for -lcrt1.10.5.o

2008-08-13 Thread Mathieu Malaterre
Hi there, One of my user is getting the following while compiling the wxVTK project (using cmake): mccdo:build mccdo$ make [ 10%] Building CXX object CMakeFiles/wxImagePlaneWidget.dir/Volumes/data/Volumes/data/Volumes/data/stuff/data/VE_Suite_Deps/wxVTK/wxVTK/src/wxVTKRenderWindowInteractor.cx