Re: [CMake] test property COST not working in cmake 2.8.3?

2010-12-07 Thread Tyler Roscoe
In the process of attempting to fix this, I learned a lot of stuff about how COST is handled that I've never encountered in the docs. Am I missing something? Here are some notes I made about the behavior of COST in CTest. If others find them useful, I'd be happy to put them in the Wiki if someone

Re: [CMake] FindBoost: find both win32 and x64 static libs

2010-12-07 Thread Michael Jackson
On Dec 7, 2010, at 4:27 PM, Hicham Mouline wrote: > From: philiplow...@gmail.com [mailto:philiplow...@gmail.com] On Behalf Of > Philip Lowman > Sent: 07 December 2010 13:17 > To: Hicham Mouline > Cc: Philip Lowman; Dmytro Ovdiienko; CMake mailing list; > boost-bu...@lists.boost.org > Subject: Re:

Re: [CMake] Creating CMakeLists files from Solutions, Projects and Makefiles

2010-12-07 Thread Andreas Pakulat
On 07.12.10 23:52:10, Andreas Pakulat wrote: > On 07.12.10 13:14:19, Paul Dean wrote: > > > > I've been using CMAKE for a few years now and I absolutley LOVE it. > > It makes my life as a programmer so much easier to be able to generate > > project files on any platform. > > > > What hurts is

Re: [CMake] Creating CMakeLists files from Solutions, Projects and Makefiles

2010-12-07 Thread John Drescher
> And without the > goal of switching from qmake to cmake, I don't see any point in doing a > conversion in the first place - after all qmake can build the project on > all interesting platforms already (else it would've been replaced). The reason I want this is there are a few QMake based librari

Re: [CMake] Creating CMakeLists files from Solutions, Projects and Makefiles

2010-12-07 Thread Andreas Pakulat
On 07.12.10 13:14:19, Paul Dean wrote: > > I've been using CMAKE for a few years now and I absolutley LOVE it. > It makes my life as a programmer so much easier to be able to generate > project files on any platform. > > What hurts is doing the reverse. I can't count how many hours I've spent

Re: [CMake] Creating CMakeLists files from Solutions, Projects and Makefiles

2010-12-07 Thread Andreas Pakulat
On 07.12.10 14:31:56, John Drescher wrote: > On Tue, Dec 7, 2010 at 2:14 PM, Paul Dean wrote: > > I've been using CMAKE for a few years now and I absolutley LOVE it. > > It makes my life as a programmer so much easier to be able to generate > > project files on any platform. > > > > What hurts is

Re: [CMake] Creating CMakeLists files from Solutions, Projects and Makefiles

2010-12-07 Thread Andreas Mohr
Hi, On Tue, Dec 07, 2010 at 02:25:18PM -0500, cmake-requ...@cmake.org wrote: > Message: 4 > Date: Tue, 7 Dec 2010 13:14:19 -0600 > From: Paul Dean > Subject: [CMake] Creating CMakeLists files from Solutions,Projects > and Makefiles > I've been using CMAKE for a few years now and I abso

Re: [CMake] FindBoost: find both win32 and x64 static libs

2010-12-07 Thread Hicham Mouline
From: philiplow...@gmail.com [mailto:philiplow...@gmail.com] On Behalf Of Philip Lowman Sent: 07 December 2010 13:17 To: Hicham Mouline Cc: Philip Lowman; Dmytro Ovdiienko; CMake mailing list; boost-bu...@lists.boost.org Subject: Re: [CMake] FindBoost: find both win32 and x64 static libs On Sunday

Re: [CMake] Makefile to CMakeLists.txt (GTEST)

2010-12-07 Thread Kevyn-Alexandre Paré
Just want to say that since I want to test C code i need this in my header file (for more details see http://en.wikipedia.org/wiki/Compatibility_of_C_and_C%2B% 2B#Linking_C_and_C.2B.2B_code): #ifdef __cplusplus /* If this is a C++ compiler, use C linkage */ extern "C" { #endif void function ();

Re: [CMake] Pass exclude test regex in visual studio

2010-12-07 Thread j s
Thanks. I have examples (for documentation) which run much longer than the standard regressions. Juan On Tue, Dec 7, 2010 at 10:15 AM, Tyler Roscoe wrote: > On Tue, Dec 07, 2010 at 02:39:18AM -0600, j s wrote: > > Is there a way to pass the ctest -E flag to a visual studio 10 > configuration >

Re: [CMake] Creating CMakeLists files from Solutions, Projects and Makefiles

2010-12-07 Thread John Drescher
On Tue, Dec 7, 2010 at 2:14 PM, Paul Dean wrote: > I've been using CMAKE for a few years now and I absolutley LOVE it. > It makes my life as a programmer so much easier to be able to generate > project files on any platform. > > What hurts is doing the reverse.  I can't count how many hours I've s

Re: [CMake] Creating CMakeLists files from Solutions, Projects and Makefiles

2010-12-07 Thread Convey, Christian J CIV NUWC NWPT, B-171
Funny timing - I just did that today, at least in a crude manner. Long story short: On Unix/Linux/Mac, you can use the command-line tools (grep, sed, cut, xargs, etc.) to get the list of all source file that comprise the solutions' projects. If your needs aren't too fancy, it's pretty trivial t

[CMake] Creating CMakeLists files from Solutions, Projects and Makefiles

2010-12-07 Thread Paul Dean
I've been using CMAKE for a few years now and I absolutley LOVE it. It makes my life as a programmer so much easier to be able to generate project files on any platform. What hurts is doing the reverse. I can't count how many hours I've spent converting Solutions, Projects and Makefiles into

Re: [CMake] Makefile to CMakeLists.txt (GTEST)

2010-12-07 Thread Kevyn-Alexandre Paré
Thx for replying, It seem that my simple example and using a add_subdirectory and reusing CMakelists.txt of the gtest source solved my problem. Regards, On Sat, 2010-12-04 at 05:48 -0500, Philip Lowman wrote: > On Wed, Dec 1, 2010 at 10:59 AM, Kevyn-Alexandre Paré > wrote: > Philip, >

Re: [CMake] Makefile to CMakeLists.txt (GTEST)

2010-12-07 Thread Kevyn-Alexandre Paré
Thx for replying, But it didn't change by switching it. Regards, Kevyn-Alexandre Paré On Wed, 2010-12-01 at 22:14 +, Fraser Hutchison wrote: > Hi Kevyn-Alexandre, > > I think moving the "-lpthread" to after "${GTEST_LIB_PATH}gtest.a > ${GTEST_LIB_PATH}gtest_main.a" should help. > > Cheer

Re: [CMake] Makefile to CMakeLists.txt (GTEST)

2010-12-07 Thread Kevyn-Alexandre Paré
Yes it's true I didn't think of this one. It work nicely, here what I have done: wget http://googletest.googlecode.com/files/gtest-1.5.0.tar.bz2 tar xjvf gtest-1.5.0.tar.bz2 cd gtest-1.5.0 mkdir my-test vim CMakeLists.txt # Add ADD_SUBDIRECTORY(my-test) cd my-test # SIMPLE HEADER FILE vim source.

Re: [CMake] Best way to sniff for Fortran compiler?

2010-12-07 Thread Michael Wild
On 12/07/2010 05:15 PM, Convey, Christian J CIV NUWC NWPT, B-171 wrote: > Any suggest for the most-proper way, in a CMakeLists.txt file, to determine > whether the Intel vs. GNU fortran compiler will be used? > > I need to use different sets of source files, and different compiler flags, > depen

[CMake] Best way to sniff for Fortran compiler?

2010-12-07 Thread Convey, Christian J CIV NUWC NWPT, B-171
Any suggest for the most-proper way, in a CMakeLists.txt file, to determine whether the Intel vs. GNU fortran compiler will be used? I need to use different sets of source files, and different compiler flags, depending on that detail. Christian Convey Scientist, NUWC Division Newport 1176 Howel

Re: [CMake] Pass exclude test regex in visual studio

2010-12-07 Thread Tyler Roscoe
On Tue, Dec 07, 2010 at 02:39:18AM -0600, j s wrote: > Is there a way to pass the ctest -E flag to a visual studio 10 configuration > to prevent certain tests from running in the regressions? I don't know of a good way (and I'm not 100% sure what you mean by "prevent certain tests from running in

Re: [CMake] CPack WiX(.msi) Patch

2010-12-07 Thread David Cole
See my comments in the bug report. Thanks, David On Tue, Dec 7, 2010 at 9:00 AM, Tim St. Clair wrote: > Folks - > >    I've opened a ticket > http://public.kitware.com/Bug/view.php?id=11575 to include my WiX > patch I made a while back, and updated to target 2.8.3 src.  Please > update said tic

[CMake] CPack WiX(.msi) Patch

2010-12-07 Thread Tim St. Clair
Folks - I've opened a ticket http://public.kitware.com/Bug/view.php?id=11575 to include my WiX patch I made a while back, and updated to target 2.8.3 src. Please update said ticket with your questions/comments/complaints as I'm determined to get this in your next point release. -- Cheers, T

Re: [CMake] How to apply the --as-needed linker flag?

2010-12-07 Thread Michael Hertling
On 11/28/2010 09:10 AM, Alan W. Irwin wrote: > On 2010-11-28 06:39+0100 Michael Hertling wrote: > >> On 11/27/2010 06:45 PM, Alan W. Irwin wrote: >>> I just discovered that many Linux distros these days use the >>> --as-needed Linux linker option by default. At first glance that >>> option makes

Re: [CMake] FindBoost: find both win32 and x64 static libs

2010-12-07 Thread Philip Lowman
On Sunday, December 5, 2010, Hicham Mouline wrote: > I've built both win32 and x64 versions of boost thread library with the > following 2 lines: > > 1. 32bit cl.exe from msvc9 directory in the %PATH% > bjam --with-thread --layout=versioned toolset=msvc address-model=64 > variant=release link=st

Re: [CMake] FindBoost: find both win32 and x64 static libs

2010-12-07 Thread Hicham Mouline
   >-Original Message- >From: "Dmytro Ovdiienko" [dmitriy.ovdie...@gmail.com] >Date: 07/12/2010 10:57 AM >To: "Hicham Mouline" >CC: "Philip Lowman" , "CMake mailing list" , boost-bu...@lists.boost.org >Subject: Re: [CMake] FindBoost: find both win32 and x64 static libs >Hicham, >Sorry for

Re: [CMake] Need some directions for non-trivial setup

2010-12-07 Thread Klaim
By the way, I'm using a set of test projects to play with CMake and understand clearly how it works, so I can experiment. On Tue, Dec 7, 2010 at 11:59, Klaim wrote: > > >> I would try to start with just one (base-)project, try to get >> everything in place and building the way you want it. If yo

Re: [CMake] Need some directions for non-trivial setup

2010-12-07 Thread Klaim
> > I would try to start with just one (base-)project, try to get > everything in place and building the way you want it. If you're new to > CMake, that's really the way to go. Once you have this base-project > ready, you can think of starting a second project, using the > base-project as EXTERNAL_

Re: [CMake] FindBoost: find both win32 and x64 static libs

2010-12-07 Thread Dmytro Ovdiienko
Hicham, Sorry for confusing. I supposed you asked about how to handle different versions of the Boost (1.42, 1.44 etc) on the same build server. On 6 December 2010 00:16, Hicham Mouline wrote: > > -Original Message- > > From: philiplow...@gmail.com [mailto:philiplow...@gmail.com] On B

[CMake] Pass exclude test regex in visual studio

2010-12-07 Thread j s
Hello, Is there a way to pass the ctest -E flag to a visual studio 10 configuration to prevent certain tests from running in the regressions? Thanks, Juan ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.c

Re: [CMake] Need some directions for non-trivial setup

2010-12-07 Thread Marcel Loose
Hi Klaim, I would try to start with just one (base-)project, try to get everything in place and building the way you want it. If you're new to CMake, that's really the way to go. Once you have this base-project ready, you can think of starting a second project, using the base-project as EXTERNAL_P