Re: [CMake] Eclipse generator: run/debug configurations

2012-06-02 Thread Chris Stankevitz
On Sat, Jun 2, 2012 at 7:20 PM, Chris Stankevitz wrote: > When I try to add a breakpoint in the source editor, gdb > complains: The problem was that I did not ask cmake to create a debug build. Fixed that and now eclipse works as expected. Chris -- Powered by www.kitware.com Visit other Kitwar

[CMake] CMake and exported headers?

2012-06-02 Thread Mikael Lyngvig
Hi, I've searched the docs, the FAQ, and Google, albeit somewhat quickly, and have not found an answer to my question. My question is this: Is it possible to have CMake copy header files from the local source directory to the output directory and then automatically use the exported headers with

[CMake] Eclipse generator: run/debug configurations

2012-06-02 Thread Chris Stankevitz
Hello, Q1: Why doesn't the cmake eclipse generator produce run/debug configurations for the executables in my cmake project? Q2: How can I add run/debug configurations to my eclipse project such that I can run, debug, and set breakpoints in my executable (from within eclipse)? More detail: I am

Re: [CMake] (missing: BZIP2_LIBRARIES) (found version "1.0.6")??

2012-06-02 Thread Dave Abrahams
on Sat Jun 02 2012, Peter Kümmel wrote: > On 02.06.2012 21:21, Peter Kümmel wrote: >> On 02.06.2012 19:54, Rolf Eike Beer wrote: >>> >>> It will look into e.g. /usr/lib and /usr/lib64 >>> (depending on your system), but not into /usr/lib/x86_64-linux-gnu. You >>> can tell it to try by setting

Re: [CMake] (missing: BZIP2_LIBRARIES) (found version "1.0.6")??

2012-06-02 Thread Dave Abrahams
on Sat Jun 02 2012, Peter Kümmel wrote: > On 02.06.2012 21:21, Peter Kümmel wrote: >> On 02.06.2012 19:54, Rolf Eike Beer wrote: >>> >>> It will look into e.g. /usr/lib and /usr/lib64 >>> (depending on your system), but not into /usr/lib/x86_64-linux-gnu. You >>> can tell it to try by setting

Re: [CMake] Nina Generator on Windows generates too long link cmd lines

2012-06-02 Thread Claus Klein
Hi Peter, after a quick test with our code, I found again the problem with unix ar utile for static libs. it does not support a linker response file! And is is not clear to me who sets this cache values: CMAKE_CXX_RESPONSE_FILE_LINK_FLAG:STRING=-Wl,@ CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS:BO

[CMake] SilverFrost FTN95 and CMake ?

2012-06-02 Thread Ilias Miroslav
Dear all, has someone experience with mixing http://www.silverfrost.com/32/ftn95/ftn95_personal_edition.aspx and CMake on Windows 7 ? I can not get simple program compiledsee below. M -- C:\Users\dv6-2145ec\Documents\MiroIlias_osobne\dirac_soft

Re: [CMake] (missing: BZIP2_LIBRARIES) (found version "1.0.6")??

2012-06-02 Thread Peter Kümmel
On 02.06.2012 21:21, Peter Kümmel wrote: On 02.06.2012 19:54, Rolf Eike Beer wrote: It will look into e.g. /usr/lib and /usr/lib64 (depending on your system), but not into /usr/lib/x86_64-linux-gnu. You can tell it to try by setting CMAKE_PREFIX_PATH=/usr/lib/x86_64-linux-gnu before calling C

Re: [CMake] (missing: BZIP2_LIBRARIES) (found version "1.0.6")??

2012-06-02 Thread Peter Kümmel
On 02.06.2012 19:54, Rolf Eike Beer wrote: It will look into e.g. /usr/lib and /usr/lib64 (depending on your system), but not into /usr/lib/x86_64-linux-gnu. You can tell it to try by setting CMAKE_PREFIX_PATH=/usr/lib/x86_64-linux-gnu before calling CMake. But the doku says it looks into "/l

Re: [CMake] (missing: BZIP2_LIBRARIES) (found version "1.0.6")??

2012-06-02 Thread Dave Abrahams
on Sat Jun 02 2012, Dave Abrahams wrote: > Heh, fair enough. I'll file a bug report. Looks like they already know about this one: http://public.kitware.com/Bug/view.php?id=12049 -- Dave Abrahams BoostPro Computing http://www.boostpro.com -- Powered by www.kitware.com Visit other Kitware

Re: [CMake] (missing: BZIP2_LIBRARIES) (found version "1.0.6")??

2012-06-02 Thread Dave Abrahams
on Sat Jun 02 2012, "Rolf Eike Beer" wrote: >> >> on Sat Jun 02 2012, "Rolf Eike Beer" >> wrote: >> > I don't understand what I'm seeing here. How can the bzip2 libraries be both missing and found simultaneously? How should I go about debugging this? >>> Th

Re: [CMake] (missing: BZIP2_LIBRARIES) (found version "1.0.6")??

2012-06-02 Thread Rolf Eike Beer
> > on Sat Jun 02 2012, "Rolf Eike Beer" > wrote: > >>> >>> I don't understand what I'm seeing here. How can the bzip2 libraries >>> be >>> both missing and found simultaneously? How should I go about debugging >>> this? >>> >> >>> Thanks, >>> Dave >>> >>> >>> $ dpkg -L libbz2-dev >>> /. >>> /us

Re: [CMake] (missing: BZIP2_LIBRARIES) (found version "1.0.6")??

2012-06-02 Thread Dave Abrahams
on Sat Jun 02 2012, "Rolf Eike Beer" wrote: >> >> I don't understand what I'm seeing here. How can the bzip2 libraries be >> both missing and found simultaneously? How should I go about debugging >> this? >> > >> Thanks, >> Dave >> >> >> $ dpkg -L libbz2-dev >> /. >> /usr >> /usr/lib >> /usr/

Re: [CMake] (missing: BZIP2_LIBRARIES) (found version "1.0.6")??

2012-06-02 Thread Rolf Eike Beer
> > I don't understand what I'm seeing here. How can the bzip2 libraries be > both missing and found simultaneously? How should I go about debugging > this? > > Thanks, > Dave > > > $ dpkg -L libbz2-dev > /. > /usr > /usr/lib > /usr/lib/x86_64-linux-gnu > /usr/lib/x86_64-linux-gnu/libbz2.a > /usr

Re: [CMake] Nina Generator on Windows generates too long link cmd lines

2012-06-02 Thread Claus Klein
Hi Peter, thanks for the commit. I will do my tests with this code again. But I have 2 more questions: It is possible to use Nina with Kdevelop and Eclipse generators too? And, too give more people a chance to test with ninja, is it possible to enable it at nightly builds for Windows and MAS-

[CMake] (missing: BZIP2_LIBRARIES) (found version "1.0.6")??

2012-06-02 Thread Dave Abrahams
I don't understand what I'm seeing here. How can the bzip2 libraries be both missing and found simultaneously? How should I go about debugging this? Thanks, Dave $ dpkg -L libbz2-dev /. /usr /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libbz2.a /usr/include /usr/include/bzlib.

[CMake] Adding CFLAGS at build time

2012-06-02 Thread Leif Walsh
With plain makefiles or autotools, I can do 'make CFLAGS=-Wno-unused-but-set-variable' or something to try out flags when building without setting it in the makefiles yet. Is there a way to do this in cmake, or is the only way to reconfigure with 'cmake -DCMAKE_C_FLAGS=-Wno-unused-but-set-varia

Re: [CMake] Nina Generator on Windows generates too long link cmd lines

2012-06-02 Thread Peter Kümmel
On 02.06.2012 12:03, Peter Kümmel wrote: Hi Claus, great you've started working on this! I fixed your TODO and pusjed it to stage: http://cmake.org/gitweb?p=stage/cmake.git;a=commitdiff;h=242f152c392882c88c47f4bcc3dc52a3431d2968 CMake could now be build with msvc and mingw (when CMAKE_RC_COMPI

[CMake] Using cmake to compile mixed C++ and Fortran code

2012-06-02 Thread Shipeng Shu
Hi, I'm writing a C++ code but I want to also use some of the Fortran code that has been previously tested. And I'm new to cmake. My CmakeList.txt looks like this: PROJECT (IRR CXX Fortran) ENABLE_LANGUAGE(Fortran) SET(SRC_LIST demo.cpp global.cpp global_variables.cpp init_config.cpp input.cpp

Re: [CMake] Using a variable as a method name

2012-06-02 Thread Damien R
On 2 June 2012 12:16, Damien R wrote: > Hi, there is also a variation based on the workaround given by David: > ... > Sorry, this workaround was already found in the bug mentioned by David in his last post (http://public.kitware.com/Bug/view.php?id=4034). The problem is that the title of this b

Re: [CMake] Using a variable as a method name

2012-06-02 Thread Damien R
On 1 June 2012 17:22, David Cole wrote: > Not directly, but as a workaround, you could write that into a file, and > then include the file. > > i.e.: > > file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/tmp.cmake" "BAR_${FOO}(arg1 arg2)") > include(${CMAKE_CURRENT_BINARY_DIR}/tmp.cmake) > Hi, there is al

Re: [CMake] Nina Generator on Windows generates too long link cmd lines

2012-06-02 Thread Peter Kümmel
Hi Claus, great you've started working on this! I fixed your TODO and pusjed it to stage: http://cmake.org/gitweb?p=stage/cmake.git;a=commitdiff;h=242f152c392882c88c47f4bcc3dc52a3431d2968 CMake could now be build with msvc and mingw (when CMAKE_RC_COMPILER is set). Peter -- Powered by www.kit

Re: [CMake] Using a variable as a method name

2012-06-02 Thread Eric Noulard
2012/6/1 LaViolette, Alan : > Hello > > I would like to call a method based on a variable name such as > > set( FOO “123”) > BAR_${FOO}(arg1 arg2) > > would do the same as > > BAR_123(arg1 arg2) > > Does any way exist to do this in CMake, such as a call() or eval() command? No there is no such thi