Re: [CMake] Override of link flag for one specific shared library

2008-09-08 Thread Martin Apel
I am using ADD_SUBDIRECTORY. I did'nt know, that anything like SUBDIRS exists and haven't found anything in the documentation about it. Martin David Cole wrote: > Are you using SUBDIRS or ADD_SUBDIRECTORY in your project...? > > > On Thu, Sep 4, 2008 at 2:42 AM, Martin Apel <[EMAIL PROTECTED] >

[CMake] Maybe a bug in FindQt4.cmake

2008-09-08 Thread Jean-Paul Chaput
Hello, I may have found a problem in FindQt4.cmake. It may have been already solved, in which case I apologize for generating noise on the list. (but I've been able to find a fix with google...) In attachement I joined a patch that fix the problem. I use CMake 2.4.7 under Scientific Linux 5 (R

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

2008-09-08 Thread Mathieu Malaterre
Patch works for me on debian stable. Please consider. Credit goes to 0xd34df00d. Thanks -Mathieu -- Forwarded message -- From: 0xd34df00d <[EMAIL PROTECTED]> Date: Sat, Sep 6, 2008 at 11:41 PM Subject: Re: [CMake] CPack DEB generator: Installed-Size field To: Mathieu Malaterre <

[CMake] Font Size of CMake-GUI

2008-09-08 Thread Allen Barnett
Hi: I'm running CMake 2.6.1 on my Fedora 7 laptop. I guess I'm getting old because the default font size of the GUI is too small for me to read. In particular, the output window font is so small that the characters are not completely rendered. Is there a way to control the font size of the GUI? Th

[CMake] BUG in TRY_COMPILE with multiple includes

2008-09-08 Thread Fernando Cacciola
Hi, Consider the following sample project: project( FOOL C CXX ) try_compile( X_COMPILE_RES ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/X.cpp CMAKE_FLAGS -DINCLUDE_DIRECTORIES:STRING="${CMAKE_SOURCE_DIR}/includeA;${CMAKE_SOURCE_DIR}/includeB" OUTPUT_VAR

Re: [CMake] BUG in TRY_COMPILE with multiple includes

2008-09-08 Thread Fernando Cacciola
Fernando Cacciola wrote: try_compile( X_COMPILE_RES ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/X.cpp CMAKE_FLAGS -DINCLUDE_DIRECTORIES:STRING="${CMAKE_SOURCE_DIR}/includeA;${CMAKE_SOURCE_DIR}/includeB" OK. By looking at the source code I realize that each "flag

Re: [CMake] Maybe a bug in FindQt4.cmake

2008-09-08 Thread Clinton Stimpson
Both of those issues have already been fixed, and are in the latest CMake 2.6. Though, I don't remember the earliest version they were fixed in. Thanks, Clint Jean-Paul Chaput wrote: Hello, I may have found a problem in FindQt4.cmake. It may have been already solved, in which case I apolog

Re: [CMake] Font Size of CMake-GUI

2008-09-08 Thread Maik Beckmann
Am Montag 08 September 2008 schrieb Allen Barnett: > Hi: I'm running CMake 2.6.1 on my Fedora 7 laptop. I guess I'm getting > old because the default font size of the GUI is too small for me to > read. In particular, the output window font is so small that the > characters are not completely render

[CMake] ctest puts LD_LIBRARY_PATH into environment impacts sub-runs of cmake/ctest

2008-09-08 Thread Wheeler, Frederick W (GE, Research)
CMake List: I have a ctest/cmake issue where LD_LIBRARY_PATH must be set to run test execs produced by ctest but that LD_LIBRARY_PATH setting causes ctest/cmake to not run due to a library mismatch. Does anyone have a solution or any advice? Details below. After a recent upgrade to FreeBSD 7.0,

Re: [CMake] Font Size of CMake-GUI

2008-09-08 Thread clinton
On Monday 08 September 2008 9:12:29 am Maik Beckmann wrote: > Am Montag 08 September 2008 schrieb Allen Barnett: > > Hi: I'm running CMake 2.6.1 on my Fedora 7 laptop. I guess I'm getting > > old because the default font size of the GUI is too small for me to > > read. In particular, the output win

Re: [CMake] ctest puts LD_LIBRARY_PATH into environment impacts sub-runs of cmake/ctest

2008-09-08 Thread Mathieu Malaterre
On Mon, Sep 8, 2008 at 7:39 PM, Wheeler, Frederick W (GE, Research) <[EMAIL PROTECTED]> wrote: > CMake List: > > I have a ctest/cmake issue where LD_LIBRARY_PATH must be set to run > test execs produced by ctest but that LD_LIBRARY_PATH setting causes > ctest/cmake to not run due to a library misma

Re: [CMake] ctest puts LD_LIBRARY_PATH into environment impacts sub-runs of cmake/ctest

2008-09-08 Thread Bill Hoffman
Wheeler, Frederick W (GE, Research) wrote: CMake List: I have a ctest/cmake issue where LD_LIBRARY_PATH must be set to run test execs produced by ctest but that LD_LIBRARY_PATH setting causes ctest/cmake to not run due to a library mismatch. Does anyone have a solution or any advice? Details b

[CMake] MPI Module

2008-09-08 Thread Robert Kubrick
I'm having some problems with the MPI module: # # MPI # FIND_PACKAGE(MPI REQUIRED) INCLUDE(CMakeForceCompiler) CMAKE_FORCE_CXX_COMPILER(mpicxx "MPI C++ Compiler") The code above works. It invokes the mpicc wrapper to compile my MPI project. However I figured there must be a simpler way to run

Re: [CMake] MPI Module

2008-09-08 Thread Alexander Neundorf
On Monday 08 September 2008, Robert Kubrick wrote: > I'm having some problems with the MPI module: > > # > # MPI > # > FIND_PACKAGE(MPI REQUIRED) > INCLUDE(CMakeForceCompiler) > CMAKE_FORCE_CXX_COMPILER(mpicxx "MPI C++ Compiler") > > The code above works. It invokes the mpicc wrapper to compile my

Re: [CMake] MPI Module

2008-09-08 Thread Robert Kubrick
Nope. I removed the force compiler lines from CMakeLists.txt and set CXX to mpicxx but the Makefile invokes g++. On Sep 8, 2008, at 5:08 PM, Alexander Neundorf wrote: On Monday 08 September 2008, Robert Kubrick wrote: I'm having some problems with the MPI module: # # MPI # FIND_PACKAGE(MPI

Re: [CMake] MPI Module

2008-09-08 Thread Alexander Neundorf
On Monday 08 September 2008, Robert Kubrick wrote: > Nope. I removed the force compiler lines from CMakeLists.txt and set > CXX to mpicxx but the Makefile invokes g++. Did you remove CMakeCache.txt, i.e. start with a fresh build tree ? Otherwise the compiler won't be changed. Alex ___

Re: [CMake] MPI Module

2008-09-08 Thread Robert Kubrick
I see. So you mean removing the cache files everytime I change the CXX variable? That works as far as I only use mpicxx, but if I want to run a profiled version of my program I should be able to set a variable to switch to mpicxx -mpe=mpianim without regenerating the Makefiles. On Sep 8, 20

Re: [CMake] MPI Module

2008-09-08 Thread Alexander Neundorf
On Monday 08 September 2008, Robert Kubrick wrote: > I see. So you mean removing the cache files everytime I change the > CXX variable? > That works as far as I only use mpicxx, but if I want to run a > profiled version of my program I should be able to set a variable to > switch to mpicxx -mpe=mpi

[CMake] UseCopyright.cmake module

2008-09-08 Thread Mathieu Malaterre
'lo there, I have written a very silly cmake module: http://gdcm.svn.sf.net/viewvc/gdcm/trunk/CMake/UseCopyright.cmake?view=markup ... # Handy macro to gather all copyright in a single file (to pass to cpack) MACRO(CREATE_COPYRIGHT_FILE name) # Always cleanup the file: FILE(WRITE ${name} ""

Re: [CMake] MPI Module

2008-09-08 Thread Robert Kubrick
On Sep 8, 2008, at 5:50 PM, Alexander Neundorf wrote: On Monday 08 September 2008, Robert Kubrick wrote: I see. So you mean removing the cache files everytime I change the CXX variable? That works as far as I only use mpicxx, but if I want to run a profiled version of my program I should be ab

Re: [CMake] MPI Module

2008-09-08 Thread Doug Gregor
On Mon, Sep 8, 2008 at 5:28 PM, Robert Kubrick <[EMAIL PROTECTED]> wrote: > I see. So you mean removing the cache files everytime I change the CXX > variable? > That works as far as I only use mpicxx, but if I want to run a profiled > version of my program I should be able to set a variable to swit

[CMake] cmake + Qt4 compilation problem

2008-09-08 Thread Luis Roberto P. Paula
Hello everyone! I'm trying to compile a simple application using Qt4 with cmake, but I'm stucked in this error: [ 33%] Generating ui_mivgui.h Scanning dependencies of target viewer [ 66%] Building CXX object CMakeFiles/viewer.dir/main.o [100%] Building CXX object CMakeFiles/viewer.dir/mivgui.o Li

Re: [CMake] cmake + Qt4 compilation problem

2008-09-08 Thread Christian Ehrlicher
> Von: "Luis Roberto P. Paula" > Hello everyone! > > I'm trying to compile a simple application using Qt4 with cmake, but I'm > stucked in this error: > > [ 33%] Generating ui_mivgui.h > Scanning dependencies of target viewer > [ 66%] Building CXX object CMakeFiles/viewer.dir/main.o > [100%] Buil

Re: [CMake] cmake + Qt4 compilation problem

2008-09-08 Thread Christian Ehrlicher
> Von: "Christian Ehrlicher" > > Von: "Luis Roberto P. Paula" > > Hello everyone! > > > > I'm trying to compile a simple application using Qt4 with cmake, but I'm > > stucked in this error: > > > > [ 33%] Generating ui_mivgui.h > > Scanning dependencies of target viewer > > [ 66%] Building CXX o

Re: [CMake] cmake + Qt4 compilation problem

2008-09-08 Thread Luis Roberto P. Paula
Oh... I left it commented just for testing. Wrong copy-paste... sorry. But even if this line is not commented, the same error message is displayed. On Tue, Sep 9, 2008 at 3:26 AM, Christian Ehrlicher <[EMAIL PROTECTED]>wrote: > > Von: "Luis Roberto P. Paula" > > Hello everyone! > > > > I'm tryin

Re: [CMake] cmake + Qt4 compilation problem

2008-09-08 Thread Luis Roberto P. Paula
Thanks for your help Christian, but I just solved the problem with the following CMakeLists.txt file. In this solution I don't need to add #include "mivgui.moc" at the end of file. CMakeLists.txt -