Re: [CMake] FindQt4.cmake returns too much irrelevant information

2009-05-07 Thread Alan W. Irwin
On 2009-05-07 22:45+0200 Christian Ehrlicher wrote: Alan W. Irwin schrieb: I have just discovered that for -DCMAKE_BUILD_TYPE=Debug, the combination of FindQt4.cmake and UseQt4.cmake inserts the keywords debug, optimized, AND general into the QT_LIBRARIES list to divide the list into three sect

Re: [CMake] Multiple calls to PROJECT() not diagnosed [was:2.6.4 add_subdirectory with same argument broken?]

2009-05-07 Thread Carsten Neumann
Hello Brad, Brad King wrote: Carsten Neumann wrote: It does so by performing multiple passes over the source tree [snip] This all works fine with cmake 2.6.x (x < 4), but the latest version complains in the OSGSETUP pass on the first call to ADD_SUBDIRECTORY in that pass (see attachm

[CMake] Have "make clean" run a script?

2009-05-07 Thread Bill O'Hara
In addition to deleting files, is it possible to get the generated clean target to run a script? I want to do everything make clean does but also insert a call to a sanity script. thanks b. ___ Powered by www.kitware.com Visit other Kitware open-source

Re: [CMake] FindQt4.cmake returns too much irrelevant information

2009-05-07 Thread Christian Ehrlicher
Alan W. Irwin schrieb: > I have just discovered that for -DCMAKE_BUILD_TYPE=Debug, the > combination of > FindQt4.cmake and UseQt4.cmake inserts the keywords debug, optimized, AND > general into the QT_LIBRARIES list to divide the list into three sections. > But only the debug section of that list

Re: [CMake] Cmake Solaris 10

2009-05-07 Thread Bill Hoffman
Oliver Trebbe wrote: Hello, i cant find any workaround for compiling cmake under solaris 10. I just saw threads or mails to the list regarding my problem compiling cmake on solaris 10 where there is the problem with the static linked library. (libcmsys.a) I´d be open for any solution. The

Re: [CMake] CMake & RPM problems

2009-05-07 Thread Eric Noulard
2009/5/7 Florent Lagaye : Florent, Try not to drop CMake ML when answering. >> Eric Noulard a écrit : >> Could you explain us (or point the appropriate documentation) >> on how the "freedesktop file" should work? > > > Freedesktop is The standard used by gnome and kde to specify "desktop > entri

[CMake] FindQt4.cmake returns too much irrelevant information

2009-05-07 Thread Alan W. Irwin
I have just discovered that for -DCMAKE_BUILD_TYPE=Debug, the combination of FindQt4.cmake and UseQt4.cmake inserts the keywords debug, optimized, AND general into the QT_LIBRARIES list to divide the list into three sections. But only the debug section of that list is used by target_link_libraries

[CMake] Cmake Solaris 10

2009-05-07 Thread Oliver Trebbe
Hello, i cant find any workaround for compiling cmake under solaris 10. I just saw threads or mails to the list regarding my problem compiling cmake on solaris 10 where there is the problem with the static linked library. (libcmsys.a) I´d be open for any solution. Regards Oliver -- Oliver T

Re: [CMake] Problem with cygwin and CodeSourcery's ARM Toolchain

2009-05-07 Thread Hendrik Sattler
Am Donnerstag 07 Mai 2009 18:15:40 schrieb Thomas Kindler: > Hendrik Sattler wrote: > > Zitat von Thomas Kindler : > >> cmake tries to use cygwin-style absolute "/home/tkindler.." paths, > >> which arm-none-eabi-gcc doesn't seem to like (being a native win32 > >> program). > >> > >> My old makefile

Re: [CMake] Automatic libraries stripping

2009-05-07 Thread Adolfo Rodríguez
You can also use the auto-generated install/strip target if you want to choose at install-time whether you want stripping of shared libs/executables or not. Adolfo On Thu, May 7, 2009 at 4:46 PM, wrote: > > Uh, so simple. Thank you, I didn't know about this option (probably not > read gcc manpa

Re: [CMake] Problem with cygwin and CodeSourcery's ARM Toolchain

2009-05-07 Thread Thomas Kindler
Hendrik Sattler wrote: Zitat von Thomas Kindler : cmake tries to use cygwin-style absolute "/home/tkindler.." paths, which arm-none-eabi-gcc doesn't seem to like (being a native win32 program). My old makefile used relative paths to invoke the compiler. How can I do this in cmake generated make

[CMake] find_libary

2009-05-07 Thread Micha Renner
If I use FIND_LIBRARY(_result name1), I have a strange effect, which I do not understand. E.g FIND_LIBRARY(_result tiff) works as it should. FIND_LIBRARY(_result gs) fails. An inspection with nautilus shows libgs.so is located in /usr/lib. glib, fontconfig, pango etc. could be found. graph, gsm,

[CMake] How do I generate a preprocessed file?

2009-05-07 Thread Piotr Wyderski
Hello, my problem is as follow. I have a project composed of four directories: base, io, rt and vm. The first three of them are being built in a normal way, but the last one has some fancy requirements. Namely, in the directory vm I want to generate a file called inc.cpp, which is composed of all

Re: [CMake] Problem with cygwin and CodeSourcery's ARM Toolchain

2009-05-07 Thread Hendrik Sattler
Zitat von Thomas Kindler : cmake tries to use cygwin-style absolute "/home/tkindler.." paths, which arm-none-eabi-gcc doesn't seem to like (being a native win32 program). My old makefile used relative paths to invoke the compiler. How can I do this in cmake generated makefiles?! Prepending "c:/

Re: [CMake] Automatic libraries stripping

2009-05-07 Thread rozelak
Uh, so simple. Thank you, I didn't know about this option (probably not read gcc manpage carefully). Thank you again. Dan > > > I would like to ask you, if (and how, if so) it is > > possible > > > to set CMake > > to strip (/usr/bin/strip) the generated libraries. > > > Use -s option for gcc.

[CMake] Problem with cygwin and CodeSourcery's ARM Toolchain

2009-05-07 Thread Thomas Kindler
Hi! I'm just playing around with cmake for a new embedded project using a STM32 ARM Cortex-M3 processor. I have installed cmake 2.6.0-patch 2 from the cygwin distribution and use a windows gcc toolchain from www.codesourcery.com. After reading the manual and FAQ, i created a CodeSourcery.cm

Re: [CMake] Automatic libraries stripping

2009-05-07 Thread Hendrik Sattler
Zitat von roze...@volny.cz: I would like to ask you, if (and how, if so) it is possible to set CMake to strip (/usr/bin/strip) the generated libraries. Hint: make help | grep strip HS ___ Powered by www.kitware.com Visit other Kitware open-source

Re: [CMake] Automatic libraries stripping

2009-05-07 Thread Denis Scherbakov
> I would like to ask you, if (and how, if so) it is possible > to set CMake > to strip (/usr/bin/strip) the generated libraries. Use -s option for gcc. You don't need to use strip directly. Denis ___ Powered by www.kitware.com Visit other Ki

[CMake] Automatic libraries stripping

2009-05-07 Thread rozelak
Hallo everybody. I would like to ask you, if (and how, if so) it is possible to set CMake to strip (/usr/bin/strip) the generated libraries. Let me note that build works without problems. I made the following definition (LIB_NAME is item defined by me): ADD_CUSTOM_COMMAND(TARGET ${LIB_NAME} POST

Re: [CMake] foreach() bug?

2009-05-07 Thread Brad King
alexandre.feb...@thomsonreuters.com wrote: Ok, thanks for the info. Can I expect this "IN" mode to be delivered in 2.6.5? Probably not. It's currently experimental, and we might still change how it works. -Brad ___ Powered by www.kitware.com Visit

Re: [CMake] Specify dependency on externally generated shared library

2009-05-07 Thread Scott Gray
Tyler Roscoe wrote: On Wed, May 06, 2009 at 03:53:10PM -0400, Scott Gray wrote: My problem is that I need to both generate the DLL and declare it as an imported library so that other programs can depend upon it. I think I'm Maybe I'm missing something, but why do you need to do this?

Re: [CMake] Create executable with no dynamic dependency at all

2009-05-07 Thread Denis Scherbakov
James, I took a look again at our source and notices, that we set CMAKE_BUILD_TYPE to Custom, so no default options migrate into our environment. I think you receive -Wl,-Bdynamic from cmake/Modules/Platform/Linux.cmake:25: SET(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-Wl,-Bdynamic") My system is

Re: [CMake] Create executable with no dynamic dependency at all

2009-05-07 Thread Jean-Pierre Bergamin
> I set -static flag in the top level CMakeLists.txt: > > SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static") > before ADD_SUBDIRECTORY. I now tried: set_target_properties(ui PROPERTIES LINK_FLAGS "-static") This helps so that "-static" is used when linking. Good. Now the only prob

[CMake] Implicity CMAKE_CURRENT_BINARY_DIR include_directories

2009-05-07 Thread Mike Arthur
I'm sure I read some time about some option you could set in a CMake project that would always implicitly do include_directories(${CMAKE_CURRENT_BINARY_DIR}) in child CMakeLists.txt without the need to do so manually. Searched the documentation to no avail. Did I just imagine this option or is

[CMake] Add Project Group command

2009-05-07 Thread Micha Renner
In Bugtracker http://public.kitware.com/Bug/view.php?id=3796 you could read: Groovounet: "I'm so glade to see this patch coming out ..." Does this mean, that this feature is now implemented (2.6.4) and, if so, exists there an example how to use it? greetings Micha _

Re: [CMake] Create executable with no dynamic dependency at all

2009-05-07 Thread Denis Scherbakov
Jean-Pierre, I set -static flag in the top level CMakeLists.txt: SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static") before ADD_SUBDIRECTORY. I didn't find any error in your files, I would do the same with exception to -static flag. Denis > May I ask what platform you are using?

Re: [CMake] foreach() bug?

2009-05-07 Thread Alexandre.Feblot
Ok, thanks for the info. Can I expect this "IN" mode to be delivered in 2.6.5? Alexandre -Original Message- From: Brad King [mailto:brad.k...@kitware.com] alexandre.feb...@thomsonreuters.com wrote: > foreach(arg ${list}) [snip] > The empty element has been discarded by foreach(). Is th

Re: [CMake] Create executable with no dynamic dependency at all

2009-05-07 Thread Jean-Pierre Bergamin
Hello > > So my question is how to avoid any dynamic linking at all. > > I found this bug report > > http://www.vtk.org/Bug/view.php?id=1644 that says > > that this has been implemented - but how? > I am not sure, how you get -Wl,-Bstatic and so on. Here is how I get > static executable: > > $ /

Re: [CMake] Create executable with no dynamic dependency at all

2009-05-07 Thread Denis Scherbakov
Jean-Pierre, I am not sure, how you get -Wl,-Bstatic and so on. Here is how I get static executable: $ /usr/bin/c++ -O2 -fomit-frame-pointer -fPIC -s -static \ CMakeFiles/DispatcherExe.dir/DispatcherMain.cc.o \ -o DispatcherExe \ -rdynamic ../../Generic/libGeneric.a \ ../../CorbaUtil/libCorbaU

[CMake] Create executable with no dynamic dependency at all

2009-05-07 Thread Jean-Pierre Bergamin
Hello CMake users We are building a CGI for a chrooted web environment. The resulting binary must not use any dynamic libs, but link everything statically (also libc and libstdc++ etc.). We currently build this binary with: LDFLAGS = -static -lboost_regex -lz ../libs/bla.a And the resulting gc