Re: [CMake] Fwd: Save stripped debugging information

2011-09-29 Thread Rolf Eike Beer
> On 09/29/2011 06:15 AM, Yuri Timenkov wrote: >> When I was investigating similar problem, I found alternative approach >> at >> http://code.google.com/p/dynamorio/source/browse/trunk/CMakeLists.txt. >> >> The thing is to change linker rules, to something like this: >> set(CMAKE_C_CREATE_SHARE

Re: [CMake] Cannot find appropriate C++ compiler on this system ...

2011-09-29 Thread Michael Wild
On 09/30/2011 04:18 AM, Albretch Mueller wrote: > ~ > I should have added that I am able to compile and run c code using gcc > ~ > C > -- Again, cpp and gcc are *NOT* C++ compilers. You need to install g++. Since Knoppix is Debian based, "apt-get install g++" should do the trick. Michael -- P

Re: [CMake] Fwd: Save stripped debugging information

2011-09-29 Thread Michael Hertling
On 09/29/2011 06:15 AM, Yuri Timenkov wrote: > When I was investigating similar problem, I found alternative approach at > http://code.google.com/p/dynamorio/source/browse/trunk/CMakeLists.txt. > > The thing is to change linker rules, to something like this: > set(CMAKE_C_CREATE_SHARED_LIBRARY

[CMake] Help regarding dependency..I guess..

2011-09-29 Thread gaurav chetal
Hello everyone.. I have two library files in two different directories and my project involves linking one library with the another..So i used Target_link_libraries..but i am unable to execute the executable and it is giving the error as "In function `main': main.C:(.text+0x1c1): undefined referenc

Re: [CMake] Cannot find appropriate C++ compiler on this system ...

2011-09-29 Thread Albretch Mueller
~ I should have added that I am able to compile and run c code using gcc ~ C -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_F

Re: [CMake] Cannot find appropriate C++ compiler on this system ...

2011-09-29 Thread Bill Hoffman
On 9/29/2011 10:03 PM, Albretch Mueller wrote: On 9/29/11, Eric Noulard wrote: gcc is a C compiler not a C++ compiler. Do you have 'g++" installed? What does g++ --version says? $ g++ --version bash: g++: command not found but I definitely have a c++ compiler installed $ which cpp /us

Re: [CMake] Cannot find appropriate C++ compiler on this system ...

2011-09-29 Thread Albretch Mueller
On 9/29/11, Eric Noulard wrote: > > gcc is a C compiler not a C++ compiler. > > Do you have 'g++" installed? > > What does > > g++ --version says? $ g++ --version bash: g++: command not found but I definitely have a c++ compiler installed $ which cpp /usr/bin/cpp $ cpp --version cpp (Debian 4

Re: [CMake] FYI - From Ninja-build mailing list - Fwd: Proposal: restat rules

2011-09-29 Thread Peter Kuemmel
> > Tested cmake/ninja with Blender's cmake files, works well, and fast! > Single file rebuild is 0.97 sec, same on makefiles was 3.7sec. > I also have some numbers: Building LyX (lyx.org, 676 files): LyX has autotools and cmake as build system. * cmake generate

Re: [CMake] variables from configuration file

2011-09-29 Thread Michael Hertling
On 09/29/2011 11:42 PM, EXT-Harris, Scott H wrote: > Hi, > I am using cmake-2.8.6-rc4. > > In my configuration file, config/cmake/linux.cmake, I have: > set ( COMPILER_HOME > /home/harris_s/cots/linux/v12.1/SunStudio12u1-Linux-x86-tar-ML/sunstudio12.1 ) SET(COMPILER_HOME ... CACHE STRING "Compil

[CMake] variables from configuration file

2011-09-29 Thread EXT-Harris, Scott H
Hi, I am using cmake-2.8.6-rc4. In my configuration file, config/cmake/linux.cmake, I have: set ( COMPILER_HOME /home/harris_s/cots/linux/v12.1/SunStudio12u1-Linux-x86-tar-ML/sunstudio12.1 ) and generated my makefiles like: cmake -C config/cmake/linux.cmake . and I would like to use ${COMPILER_

[CMake] Proper resources placement in Xcode

2011-09-29 Thread Daniel Dekkers
Hi, I'm targeting Xcode, I have different apps and a single library the apps depend on. The resources of the individual apps are added simply by appending them to ADD_EXECUTABLE(... ${RESOURCES}) in the CMakeLists.txt of the individual project. After this, Xcode is made "aware" of them by sett

Re: [CMake] MakeCommand unset in CTestConfiguration.ini

2011-09-29 Thread David Cole
Do you include(CTest) in your main CMakeLists.txt file? The value of the MAKECOMMAND cache variable, established in the file Modules/CTest.cmake should be the thing that controls the value of MAKECOMMAND for configuring either DartConfiguration.tcl or CTestConfiguration.ini. On Mon, Sep 26, 2011

Re: [CMake] using matlab mex compiler with cmake on windows

2011-09-29 Thread David Cole
On Fri, Sep 23, 2011 at 9:00 AM, Jaka Katrašnik wrote: > But which one? > > I'm trying to follow the steps of this tutorial > (http://www.vtk.org/Wiki/CMake:MatlabMex). However I don't know how to apply > the patch that is referenced in it. The patch is for Linux machines and I'm > using Windows.

Re: [CMake] Does find_library check that a found library does in fact link?

2011-09-29 Thread Clifford Yapp
On Thu, Sep 29, 2011 at 3:22 AM, Hendrik Sattler wrote: > People tend to misunderstand the purpose of build systems like CMake and > autotools. They try to make the detection bullet-proof and most likely fail. > You can see that this is wrong by looking at those auto* setups that take > ages to d

Re: [CMake] Does find_library check that a found library does in fact link?

2011-09-29 Thread Clifford Yapp
On Thu, Sep 29, 2011 at 2:59 AM, Michael Wild wrote: > > Just a few of my thoughts on this: > > - There are several ways to handle dead symlinks: > 1. Don't check, let the linker complain (status quo) > 2. Check whether the found library is a symlink, and if not valid, > remove it silently

Re: [CMake] Does find_library check that a found library does in fact link?

2011-09-29 Thread Micha Renner
Am Donnerstag, den 29.09.2011, 10:32 +0200 schrieb Hendrik Sattler: > Zitat von Micha Renner : > > > Am Donnerstag, den 29.09.2011, 09:22 +0200 schrieb Hendrik Sattler: > >> Zitat von Michael Wild : > >> > Just a few of my thoughts on this: > >> > >> Same for me. > >> > >> > - There are several wa

Re: [CMake] Cannot find appropriate C++ compiler on this system ...

2011-09-29 Thread Eric Noulard
2011/9/29 Albretch Mueller : >  I am using knoppix and I am trying to build cmake's sources into a > local directory, but this is what I get: > ~ > $ ./bootstrap; make; make install > - > CMake 2.8.5, Copyright 2000-2009 Kitware, Inc. > C compiler on this

Re: [CMake] Does find_library check that a found library does in fact link?

2011-09-29 Thread Hendrik Sattler
Zitat von Micha Renner : Am Donnerstag, den 29.09.2011, 09:22 +0200 schrieb Hendrik Sattler: Zitat von Michael Wild : > Just a few of my thoughts on this: Same for me. > - There are several ways to handle dead symlinks: > 1. Don't check, let the linker complain (status quo) > 2. Check whe

[CMake] Cannot find appropriate C++ compiler on this system ...

2011-09-29 Thread Albretch Mueller
I am using knoppix and I am trying to build cmake's sources into a local directory, but this is what I get: ~ $ ./bootstrap; make; make install - CMake 2.8.5, Copyright 2000-2009 Kitware, Inc. C compiler on this system is: cc

Re: [CMake] Does find_library check that a found library does in fact link?

2011-09-29 Thread Micha Renner
Am Donnerstag, den 29.09.2011, 09:22 +0200 schrieb Hendrik Sattler: > Zitat von Michael Wild : > > Just a few of my thoughts on this: > > Same for me. > > > - There are several ways to handle dead symlinks: > > 1. Don't check, let the linker complain (status quo) > > 2. Check whether the foun

Re: [CMake] Does find_library check that a found library does in fact link?

2011-09-29 Thread Hendrik Sattler
Zitat von Michael Wild : Just a few of my thoughts on this: Same for me. - There are several ways to handle dead symlinks: 1. Don't check, let the linker complain (status quo) 2. Check whether the found library is a symlink, and if not valid, remove it silently from the list of candi

Re: [CMake] Does find_library check that a found library does in fact link?

2011-09-29 Thread Rolf Eike Beer
> On 09/29/2011 07:15 AM, Clifford Yapp wrote: >> On Wed, Sep 28, 2011 at 8:52 PM, Michael Hertling >> mailto:mhertl...@online.de>> wrote: >> I guess the question revolves around the expectation of find_library >> being different from find_file - as a user, my expectation would be >> that find_lib