Re: [CMake] Changing compiler flags generated by cmake

2010-06-22 Thread Tyler Roscoe
On Tue, Jun 22, 2010 at 08:30:43PM -0700, ben scott wrote: > I know about the variable to add custom flags for g++, but how do I get rid > if > unwanted flags? I am writing a program for KDE on Linux and cmake insists on Something like: string(REPLACE "-ansi" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FL

Re: [CMake] Eclipse Galileo and CDT version 6.0.2

2010-06-22 Thread Hugh Sorby
I am using cmake version 2.8.1. I have found my problem (not quite) I need to check the "replace native environment with specified environment" radio button on the properties/"C/C++ Make Project" page which is on the Environment tab of this page.  Is there a way to set this radio button from m

[CMake] Changing compiler flags generated by cmake

2010-06-22 Thread ben scott
I know about the variable to add custom flags for g++, but how do I get rid if unwanted flags? I am writing a program for KDE on Linux and cmake insists on putting "-ansi" in the flags. One of the header files for a library uses "typeof" so I need to get rid of the ansi flag. Thank you. _

[CMake] how to configure OTB

2010-06-22 Thread 海明 张
Dear all, I am trying to install OTB in windows xp. I tried several times using different GDAL. Each time I got different error. Anyone know how to install OTB please help me. The following are results what I got each time. I use OTB of OrfeoToolbox-3.2.1.zip in http://www.orfeo-toolbox.or

[CMake] CMake 2.8.2-rc3 ready for testing!

2010-06-22 Thread David Cole
The CMake 2.8.2 release candidate stream continues! You can find the source and binaries here: http://www.cmake.org/files/v2.8/?C=M;O=D If we do not get any reports of regressions from previous releases of CMake, this release candidate will become the final 2.8.2. Since we switched to git, and a

Re: [CMake] Linking against boost_Test fails

2010-06-22 Thread Oswin Krause
>On 06/21/2010 10:19 PM, Oswin Krause wrote: >>> On 06/21/2010 04:53 PM, Oswin Krause wrote: Hello everybody, I am currently trying to write a cmake script for my testcases. Previously i used a command like this: g++ test.cpp -lboost_test_exec_monitor-mt -L/path/to/li

Re: [CMake] USER_MAKE_RULES_OVERRIDE not used in initial try_compile

2010-06-22 Thread Bill Hoffman
On 6/22/2010 12:34 PM, David Genest wrote: Re-posting for attention :-) thanks D. -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of David Genest Sent: 11 juin 2010 12:35 To: cmake@cmake.org Subject: [CMake] USER_MAKE_RULES_OVERRIDE not used

Re: [CMake] How to copy directory as part of custom target, filtering out .svn dirs?

2010-06-22 Thread Michael Hertling
On 06/21/2010 10:34 PM, Rick Gould wrote: > I'm looking to install a directory as part of a custom target, but > exclude all the Subversion .svn directories. > > Both of the the following work, but run as part of the "make install" > target, which I don't want: > >install( DIRECTORY ${source_

Re: [CMake] Link order of object files

2010-06-22 Thread Alexander Neundorf
On Tuesday 22 June 2010, Mathias Lafeldt wrote: > Alexander Neundorf wrote: > > On Monday 21 June 2010, Mathias Lafeldt wrote: > >> Hi, > >> > >> is there a way to tell CMake in which order to link in object files? > >> > >> For example, I got the following executable: > >> > >>ADD_EXECUTABLE(h

[CMake] USER_MAKE_RULES_OVERRIDE not used in initial try_compile

2010-06-22 Thread David Genest
Re-posting for attention :-) thanks D. -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of David Genest Sent: 11 juin 2010 12:35 To: cmake@cmake.org Subject: [CMake] USER_MAKE_RULES_OVERRIDE not used in initial try_compile Hi, I am modifying

Re: [CMake] Searching the mailing list archives

2010-06-22 Thread Eric Noulard
2010/6/22 Bo Thorsen : > > The site: tells google to only consider URLs that contain this. I also use > this to search for something in another country - site:co.uk if I want > something in Great Brittain. (Yes, I know some there also has other domains, > but for some searches that's not a problem)

Re: [CMake] Building in stages.

2010-06-22 Thread Michael Hertling
On 06/21/2010 05:41 PM, Magnus Therning wrote: > On Mon, Jun 21, 2010 at 16:10, Michael Wild wrote: >> >>> I'm looking for some suggestions on how to tackle a problem with staged >>> builds. >>> >>> In trying to convert a project which uses omake to build OCaml files I've >>> stumbled on the issue

Re: [CMake] Link order of object files

2010-06-22 Thread Eric Noulard
2010/6/22 Mathias Lafeldt : > Alexander Neundorf wrote: >> On Monday 21 June 2010, Mathias Lafeldt wrote: >>> Hi, >>> >>> is there a way to tell CMake in which order to link in object files? >>> >>> For example, I got the following executable: >>> >>>      ADD_EXECUTABLE(hello crt0.o hello.c) >>> >

Re: [CMake] Searching the mailing list archives

2010-06-22 Thread Bo Thorsen
Den 22-06-2010 06:06, Michael Hertling skrev: On 06/22/2010 05:51 AM, Philip Boltt wrote: Hi, Is there a way to search the entire mailing list archive? The archive link (http://www.cmake.org/pipermail/cmake/) goes to a page that seems to require going into each month individually and searching

Re: [CMake] Linking against boost_Test fails

2010-06-22 Thread Michael Hertling
On 06/21/2010 10:19 PM, Oswin Krause wrote: >> On 06/21/2010 04:53 PM, Oswin Krause wrote: >>> Hello everybody, >>> >>> I am currently trying to write a cmake script for my testcases. Previously >>> i used a command like this: >>> >>> g++ test.cpp -lboost_test_exec_monitor-mt -L/path/to/lib/ -lsha

Re: [CMake] Building in stages.

2010-06-22 Thread Magnus Therning
On Tue, Jun 22, 2010 at 07:48, Michael Wild wrote: [...] > Ahh, now I understand. You need foo already at cmake-time, not at make-time. > Ideally you'd want to run ocamldep at make-time to determine the file-level > dependencies, like cmake does for C/C++/Fortran/Java. However, I don't think >

Re: [CMake] Link order of object files

2010-06-22 Thread Mathias Lafeldt
Alexander Neundorf wrote: > On Monday 21 June 2010, Mathias Lafeldt wrote: >> Hi, >> >> is there a way to tell CMake in which order to link in object files? >> >> For example, I got the following executable: >> >> ADD_EXECUTABLE(hello crt0.o hello.c) >> >> Using a disassembler, I can see that

Re: [CMake] [patch] cmake-2.8.1 and png-1.4.2

2010-06-22 Thread Michael Hertling
On 06/20/2010 12:34 AM, Thomas Klausner wrote: > Hi! > > I've updated png in pkgsrc to 1.4.2 and had to fix some programs to > compile against that version. > > cmake didn't find the png library at all, since it was renamed There is rather a new version with a different SONAME. > (again). The a

Re: [CMake] Building in stages.

2010-06-22 Thread Michael Wild
On 22. Jun, 2010, at 7:27 , Magnus Therning wrote: > On Mon, Jun 21, 2010 at 17:46, Aeschbacher, Fabrice > wrote: >> I would try following in foo/CmakeLists.txt: >> >> add_custom_command(TARGET foo >> POST_BUILD >> COMMAND touch bar/CMakeLists.txt >> ) >> >> This will force CMake

Re: [CMake] Building in stages.

2010-06-22 Thread Magnus Therning
On Mon, Jun 21, 2010 at 17:46, Aeschbacher, Fabrice wrote: > I would try following in foo/CmakeLists.txt: > >   add_custom_command(TARGET foo >      POST_BUILD >      COMMAND touch bar/CMakeLists.txt >   ) > > This will force CMake to re-build the makefiles for 'bar' (because its > CMakeLists.txt