Re: [CMake] Set default build type in CMakeLists.txt

2009-06-23 Thread James Bigler
On Mon, Jun 22, 2009 at 10:05 AM, David Doria wrote: > You may also need to use FORCE: >> >> if(NOT CMAKE_BUILD_TYPE) >>   set(CMAKE_BUILD_TYPE "Release" CACHE STRING >>   "Choose the type of build, options are: Debug Release >> RelWithDebInfo MinSizeRel." >>   FORCE) >> endif(NOT CMAKE_BUI

Re: [CMake] Visual Studio plugin help

2009-06-23 Thread James Bigler
I found a work around. If you have a custom rule that generates an object file, I discovered that you don't have to add the object file to the VS project. VS will use the output of the custom command in the linker if it recognizes that it's an object file. I was happy, because now I didn't have

Re: [CMake] Visual Studio plugin help

2009-06-23 Thread James Bigler
Well, OK. I've narrowed it down a bit more. I don't think this is related to the plugin. In one of my projects, if I simply compile an already compiled project then exit, I get a crash. I ported some of the CMake code from that project into a new one and now they are both crashing. I didn't not

Re: [CMake] Linking 3rd party libraries

2009-06-23 Thread Tyler Roscoe
On Tue, Jun 23, 2009 at 04:41:09PM -0500, Nathan Paul wrote: > I'm building a shared library and have a 3rd party library whose output is > in the following folder structure: > lib/ > debug/ > > release/ > > Is it possible to change the linker path for different build conf

Re: [CMake] IBM Fortran and the C Preprocessor

2009-06-23 Thread Brad King
Will Dicharry wrote: It appears that add_definitions() places -DWHATEVER in the compile command line on all Unix variants. Unfortunately, IBM's Fortran compiler uses -D as a compile flag for something other than adding a preprocessor definition. In order to pass a preprocessor definition, yo

[CMake] Linking 3rd party libraries

2009-06-23 Thread Nathan Paul
Hi all, I'm building a shared library and have a 3rd party library whose output is in the following folder structure: lib/ debug/ release/ Is it possible to change the linker path for different build configurations? I'm generating Visual C++ 2008 project files. For now I j

[CMake] IBM Fortran and the C Preprocessor

2009-06-23 Thread Will Dicharry
Hi All, We build on an IBM AIX system with the VisualAge compilers. We have some Fortran code that depends on being preprocessed by the C preprocessor. Like most Fortran compilers, IBM's Fortran compiler automatically runs cpp on *.F files. It appears that add_definitions() places -DWHATEV

Re: [CMake] Boost on Windows

2009-06-23 Thread Andreas Pakulat
On 23.06.09 16:51:05, Michael Jackson wrote: > Boost uses the following version scheme: > > If the sub minor version is "0" then leave it off all versions. If the > subminor version is NOT zero then add it on. So for versions like 1.38.1 > FindBoost will work just fine. But for 1.38 (the current

Re: [CMake] Visual Studio plugin help

2009-06-23 Thread James Bigler
On Tue, Jun 23, 2009 at 2:43 PM, David Cole wrote: > In VS 2005, the file is in your "My Documents" folder of Windows, under > "Visual Studio 2005/Projects/VSMacros80/CMakeMacros". > If you remove it, CMake should put it back again next time it configures... This is fine. I just wanted to make su

Re: [CMake] Boost on Windows

2009-06-23 Thread Andreas Pakulat
On 23.06.09 16:23:21, Bill Hoffman wrote: > Christopher Harvey wrote: >> define BOOST_ROOT and point it at the root install location for boost. I >> had the same problem, that fixed it. I only had to do that on windows. >> > There seems to be a bug in the FindBoost, BOOST_ROOT should not be > req

Re: [CMake] Boost on Windows

2009-06-23 Thread Bill Hoffman
John Drescher wrote: On Tue, Jun 23, 2009 at 4:23 PM, Bill Hoffman wrote: Christopher Harvey wrote: define BOOST_ROOT and point it at the root install location for boost. I had the same problem, that fixed it. I only had to do that on windows. There seems to be a bug in the FindBoost, BOOST_R

Re: [CMake] Boost on Windows

2009-06-23 Thread Michael Jackson
On Jun 23, 2009, at 4:23 PM, Bill Hoffman wrote: Christopher Harvey wrote: define BOOST_ROOT and point it at the root install location for boost. I had the same problem, that fixed it. I only had to do that on windows. There seems to be a bug in the FindBoost, BOOST_ROOT should not be req

Re: [CMake] Boost on Windows

2009-06-23 Thread Curtis Rueden
Hi Bill, Thanks, adding another line to _boost_LIBRARIES_SEARCH_DIRS without the Boost_SUBMINOR_VERSION fixes the problem for me as well. I agree that this is a special case for 0, though -- there is some question whether the line without the subminor version should be appended to the list if the

Re: [CMake] Visual Studio plugin help

2009-06-23 Thread David Cole
In VS 2005, the file is in your "My Documents" folder of Windows, under "Visual Studio 2005/Projects/VSMacros80/CMakeMacros". If you remove it, CMake should put it back again next time it configures... Does the exception happen while you are closing an instance of Visual Studio? (Or might there be

Re: [CMake] Boost on Windows

2009-06-23 Thread John Drescher
On Tue, Jun 23, 2009 at 4:23 PM, Bill Hoffman wrote: > Christopher Harvey wrote: >> >> define BOOST_ROOT and point it at the root install location for boost. I >> had the same problem, that fixed it. I only had to do that on windows. >> > There seems to be a bug in the FindBoost, BOOST_ROOT should

Re: [CMake] How to add cache variables so they show up in own group in cmake-gui "Grouped View"

2009-06-23 Thread John Drescher
On Tue, Jun 23, 2009 at 4:32 PM, Gooch, Allen wrote: > > I misspoke. Sorry for the confusion. I had a couple of distinct prefixes, > each containing one var.  But to my last question, is this behavior as > designed or a bug? I believe this is the designed behavior. You need 2 variables with the

Re: [CMake] Boost on Windows

2009-06-23 Thread Andreas Pakulat
On 23.06.09 16:17:21, Curtis Rueden wrote: > > Also, Looking at the CMakeLists.txt file it seems you are trying to parse > > the Boost_THREAD library variable for something? If you are trying to > > differentiate between the Release and Debug versions there are the following > > variables for each

Re: [CMake] How to add cache variables so they show up in own group in cmake-gui "Grouped View"

2009-06-23 Thread Gooch, Allen
I misspoke. Sorry for the confusion. I had a couple of distinct prefixes, each containing one var. But to my last question, is this behavior as designed or a bug? I can always add a dummy var to force a group, but I really want to have only grouped entries, even if there is only one member to

Re: [CMake] Boost on Windows

2009-06-23 Thread Bill Hoffman
Christopher Harvey wrote: define BOOST_ROOT and point it at the root install location for boost. I had the same problem, that fixed it. I only had to do that on windows. There seems to be a bug in the FindBoost, BOOST_ROOT should not be required. I got it to work by adding this: SET(_boo

[CMake] Visual Studio plugin help

2009-06-23 Thread James Bigler
Where is the VS plugin stored on disk? Can I remove it, and have CMake add it again? Somehow I managed to get my Visual Studio into a state where often when the CMake plugin unloads the solution, VS crashes with the following error: The server threw an exception. (Exception from HRESULT: 0x80010

Re: [CMake] Boost on Windows

2009-06-23 Thread Michael Jackson
On Jun 23, 2009, at 4:17 PM, Curtis Rueden wrote: Hi Mike, I use the boost pre-compiled all the time and I don't have any of these issues BUT I do set the BOOST_ROOT environment variable in "My Computer->Advanced Settings" after I install which may be the difference. I use threads, progr

Re: [CMake] How to add cache variables so they show up in own group in cmake-gui "Grouped View"

2009-06-23 Thread Tyler Roscoe
On Tue, Jun 23, 2009 at 01:20:04PM -0700, Gooch, Allen wrote: > It seems to only group variables if more than one variable has the > prefix. When I added a second variable with the BWA_* prefix, they > showed up as expected. To me, this violates the "principle of least > surprise". Is this behav

Re: [CMake] Boost on Windows

2009-06-23 Thread Curtis Rueden
> > define BOOST_ROOT and point it at the root install location for boost. I > had the same problem, that fixed it. I only had to do that on windows. > Thanks Christopher, but I am aware of that fix. Actually, that's what my hack does -- it uses CMake to set BOOST_ROOT programmatically. What I'm g

Re: [CMake] How to add cache variables so they show up in own group in cmake-gui "Grouped View"

2009-06-23 Thread Gooch, Allen
It seems to only group variables if more than one variable has the prefix. When I added a second variable with the BWA_* prefix, they showed up as expected. To me, this violates the "principle of least surprise". Is this behavior present as designed or is it simply a bug? -ag -Original

Re: [CMake] Boost on Windows

2009-06-23 Thread Curtis Rueden
Hi Mike, > I use the boost pre-compiled all the time and I don't have any of these > issues BUT I do set the BOOST_ROOT environment variable in "My > Computer->Advanced Settings" after I install which may be the difference. I > use threads, program_options, testing, filesystem and system. > Yes,

Re: [CMake] How to add cache variables so they show up in own group in cmake-gui "Grouped View"

2009-06-23 Thread John Drescher
On Tue, Jun 23, 2009 at 4:04 PM, Gooch, Allen wrote: > My variables all start with "BWA_*" prefix, but I'm still seeing them show up > under "Ungrouped Entries" exclusively. > This is definitely working for me. I mean if I have 2 or more entries that start with the same thing up to the first unde

Re: [CMake] CmakeADSP How to use gmake with ADSP tools

2009-06-23 Thread Alexander Neundorf
On Tuesday 23 June 2009, Daniel Wildermuth wrote: > Hi all, > On the wiki there is a good description on crosscompiling with ADSP > cross compiler. > > http://www.kwwidgets.org/Wiki/CmakeAdsp > > Does someone have experience on how to use CMake to generate Makefiles > for the ADSP built in gmake-37

Re: [CMake] How to add cache variables so they show up in own group in cmake-gui "Grouped View"

2009-06-23 Thread Gooch, Allen
My variables all start with "BWA_*" prefix, but I'm still seeing them show up under "Ungrouped Entries" exclusively. -Original Message- From: Robert Bielik [mailto:robert.bie...@xponaut.se] Sent: Tuesday, June 23, 2009 2:58 PM To: Gooch, Allen Cc: cmake@cmake.org Subject: Re: [CMake] How

Re: [CMake] How to define a global scope variable ?

2009-06-23 Thread Alexander Neundorf
On Tuesday 23 June 2009, Xiangyun Kong wrote: > How could I define a global scoped variable in CMAKE, so that I could use > something like, > > set (global_name ${global_name} {files}) > > to collect all files in each sub-catogory recursively ? > > It seems I could only use PARENT_SCOPE to make

Re: [CMake] How to add cache variables so they show up in own group in cmake-gui "Grouped View"

2009-06-23 Thread Robert Bielik
Gooch, Allen skrev: I have several variables I would like to have configured using a custom group which shows up in the “Grouped View” of cmake-gui. How is this done? If I'm not mistaken, grouping is done by checking prefixes. So if your variables are named "MYCUSTOMVAR_*" they'd popup under

Re: [CMake] Cannot compile simple example using cmake and xcode (linker problem)

2009-06-23 Thread Bill Hoffman
Pim Schellart wrote: Hello Everyone, I tried removing and reinstalling Xcode using (sudo /Developer/Library/uninstall-devtools --mode=all) which also removes and reinstalls gcc. This does not solve the problem. In fact cmake -G Xcode now fails with the following: You might want to make sure

[CMake] How to add cache variables so they show up in own group in cmake-gui "Grouped View"

2009-06-23 Thread Gooch, Allen
I have several variables I would like to have configured using a custom group which shows up in the "Grouped View" of cmake-gui. How is this done? Many thanks in advance, Allen Gooch Senior Server Engineer BioWare ___ Powered by www.kitware.com Vis

Re: [CMake] Boost on Windows

2009-06-23 Thread Christopher Harvey
define BOOST_ROOT and point it at the root install location for boost. I had the same problem, that fixed it. I only had to do that on windows. Curtis Rueden wrote: > Hi everyone, > > I am using CMake to build some code cross-platform. This code requires > Boost Thread to compile. I am having seve

Re: [CMake] Cannot compile simple example using cmake and xcode (linker problem)

2009-06-23 Thread Pim Schellart
Hello Everyone, I tried removing and reinstalling Xcode using (sudo /Developer/Library/uninstall-devtools --mode=all) which also removes and reinstalls gcc. This does not solve the problem. In fact cmake -G Xcode now fails with the following: CMake Error at /Applications/CMake 2.6-4.app/Contents/

Re: [CMake] program output modified by ctest for cdash

2009-06-23 Thread Clinton Stimpson
Ok. The problem was file permissions on the cdash installation (web server has its own user account). Not getting a log file at all was a hint. And I was confused that small submissions worked (I guess because no temporary files were made?). Maybe cdash can check permissions as part of setup

Re: [CMake] Boost on Windows

2009-06-23 Thread Michael Jackson
I use the boost pre-compiled all the time and I don't have any of these issues BUT I do set the BOOST_ROOT environment variable in "My Computer->Advanced Settings" after I install which may be the difference. I use threads, program_options, testing, filesystem and system. I did notice in

Re: [CMake] program output modified by ctest for cdash

2009-06-23 Thread David Cole
On Tue, Jun 23, 2009 at 1:31 PM, Clinton Stimpson wrote: > David Cole wrote: > >> >> Do you have access to the CDash server to add some logging code to it? >> > Yes I do. If you could tell me how to add logging, that would help. I > have CDash 1.4.2. > > Clint > >> In the CDash source tree, see

Re: [CMake] Boost on Windows

2009-06-23 Thread Curtis Rueden
Hi Andreas, Well, then most probably the layout of that binary installation differs > from what the FindBoost.cmake file expects. So where is the boost thread > library and how is it named? The latest available version of Boost offered by BoostPro is v1.38. The libraries are placed in: C:\Pro

Re: [CMake] program output modified by ctest for cdash

2009-06-23 Thread Clinton Stimpson
David Cole wrote: Does the test.xml file parse as xml if you open it in Firefox or Internet Explorer...? If it does not parse as xml, then the parser in CDash will not be able to read it properly... It opens fine in firefox. If I mess it up, then firefox complains. Do you have access to the

Re: [CMake] Boost on Windows

2009-06-23 Thread Andreas Pakulat
On 23.06.09 13:09:25, Curtis Rueden wrote: > First, I installed Boost using BoostPro's precompiled binaries at > http://www.boostpro.com/download. > > Then I tried the following CMakeLists.txt file: > > -- > # Simple CMake build file for testing FindBoost. Fails on Windows with > # Boost

Re: [CMake] program output modified by ctest for cdash

2009-06-23 Thread David Cole
Does the test.xml file parse as xml if you open it in Firefox or Internet Explorer...? If it does not parse as xml, then the parser in CDash will not be able to read it properly... Do you have access to the CDash server to add some logging code to it? On Tue, Jun 23, 2009 at 1:14 PM, Clinton Stim

Re: [CMake] program output modified by ctest for cdash

2009-06-23 Thread Clinton Stimpson
Hmm... that may not be my problem. I keep trimming down in different ways the program output in Text.xml in hopes to find some strings that trigger this problem. But I'm not seeing any pattern that says whether cdash displays the any test results or not. Any ideas on debugging techniques or lo

[CMake] Boost on Windows

2009-06-23 Thread Curtis Rueden
Hi everyone, I am using CMake to build some code cross-platform. This code requires Boost Thread to compile. I am having several problems with FindBoost on Windows. First, I installed Boost using BoostPro's precompiled binaries at http://www.boostpro.com/download. Then I tried the following CMak

Re: [CMake] How to set different compiler flags for two projects in one solution

2009-06-23 Thread Tyler Roscoe
Make sure to reply to the list! On Tue, Jun 23, 2009 at 08:24:52AM +0200, ariasg...@gmx.de wrote: > what I was talking about is that if I have project 1 and 2 and I need > to set additional compiler_flags for project 2 I can do that with > set_target_properties, thats fine. But if the additional f

[CMake] program output modified by ctest for cdash

2009-06-23 Thread Clinton Stimpson
I'm seeing that the stdout of a program being tested is modified and < > and such characters are showing up in the Test.xml file that gets sent to cdash. As a result, the test columns in cdash don't show any passes or failures or anything, as if cdash didn't get the Test.xml file. Is there s

Re: [CMake] [Insight-users] INSTALL(EXPORT)

2009-06-23 Thread Brad King
Michael Schildt wrote: Hello! It been a while for this topic... I would like to know if there are any (good) news on this issue. I have exactly the mentioned problem using the ITK 3.14 source. Do I have to make the suggested modification of the first post on this topic to ALL the CMakeLists.tx

Re: [CMake] [Insight-users] INSTALL(EXPORT)

2009-06-23 Thread Michael Schildt
Hello! It been a while for this topic... I would like to know if there are any (good) news on this issue. I have exactly the mentioned problem using the ITK 3.14 source. Do I have to make the suggested modification of the first post on this topic to ALL the CMakeLists.txt? I do not hope so. For

Re: [CMake] How to make sure "make test" depends on "make all"

2009-06-23 Thread Marcel Loose
Hi Shlomi You might consider using another target, say 'check'. I've used that to mimic more or less the GNU autotools behaviour. See http://www.cmake.org/Wiki/CMakeEmulateMakeCheck. Don't use EXCLUDE_FROM_ALL if you want your test programs to depend on the target 'all'. Best regards, Marcel Loos

Re: [CMake] Eclipse CDT 4 generator problems

2009-06-23 Thread Robert Bielik
Eric Noulard skrev: May be you should try again with a genuine jdk (sun jdk or open jdk) I did experienced trouble with gij and Eclipse. Thnx, that did the trick. Installed the sun-jdk and it works fine, not only that, the interpreter is *alot* faster too :) /Rob

Re: [CMake] Eclipse CDT 4 generator problems

2009-06-23 Thread Eric Noulard
2009/6/23 Robert Bielik : > Hi Eric, > > Eric Noulard skrev: >> >> Never crossed that one. >> I did use cmake 2.6.[1234] with debian etch/sid amd64 + eclipse >> ganymede without trouble. >> >> Do you have a stripped down CMake project that exhibits the problem? >> I may try it here. > > I tried mak

[CMake] CmakeADSP How to use gmake with ADSP tools

2009-06-23 Thread Daniel Wildermuth
Hi all, On the wiki there is a good description on crosscompiling with ADSP cross compiler. http://www.kwwidgets.org/Wiki/CmakeAdsp Does someone have experience on how to use CMake to generate Makefiles for the ADSP built in gmake-378 ? Where could I get the generator for this gmake? Thank

Re: [CMake] How to make sure "make test" depends on "make all"

2009-06-23 Thread Hugo Heden
On Tue, Jun 23, 2009 at 9:56 AM, Shlomi Fish wrote: > Hi all! > > I'm using cmake-2.6.4-3mdv2010.0 on Mandriva Linux Cooker, and ran into a > problem. I want "make test" (which is a custom target) to depend on "make > all", in this codebase: > >

[CMake] How to make sure "make test" depends on "make all"

2009-06-23 Thread Shlomi Fish
Hi all! I'm using cmake-2.6.4-3mdv2010.0 on Mandriva Linux Cooker, and ran into a problem. I want "make test" (which is a custom target) to depend on "make all", in this codebase: http://svn.berlios.de/svnroot/repos/fc-solve/trunk/fc-solve/source/ I have this code: {{{ ADD_CUSTOM_