[CMake] How to get informations from FIND_PACKAGE(Git)

2010-09-22 Thread norulez
Hello, how can i get the revision and so on after FIND_PACKAGE(Git) like in Subversion_WC_INFO? Thanks in advance Best Regards NoRulez ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/openso

Re: [CMake] ccmake and cmake

2010-09-22 Thread Michael Wild
With Ubuntu you need the cmake-curses-gui package. Michael On 23. Sep, 2010, at 24:25 , David Cole wrote: > If you have cmake, you have ccmake. > > They are not installed separately. ccmake is part of the cmake package. > > > On Wed, Sep 22, 2010 at 6:22 PM, Siddharth Srivastava wrote: > >>

[CMake] How to add additional informations to cdash?

2010-09-22 Thread norulez
Hello, is there a way to add additional informations to cdash like Qt version, database version and such things to the build time. The thing is that i want to know under which version a build fails. Thanks in advance Best Regards NoRulez ___ Powered b

[CMake] Visual Studio project error

2010-09-22 Thread J Decker
using 2.8.3-rc1 I decided to throw the project against visual studio and see what I got. clicking on the install target -- Build started: Project: INSTALL (CMakePredefinedTargets\INSTALL), Configuration: Debug Win32 -- 3> CMake Warning (dev) at cmake_install.cmake:5 (SET): 3>Syntax e

Re: [CMake] best practice way of copying libraries to an install package

2010-09-22 Thread Eric Noulard
2010/9/23 edA-qa mort-ora-y : > On 09/23/2010 12:12 AM, Ryan Pavlik wrote: >>> If anybody has a good resource, or can recommend some best practices, >>> that would be great. >> Use CMake and CPack?  See the wiki, and elsewhere on the internet. > > Yes, I am of course using CMake. My question is mor

Re: [CMake] best practice way of copying libraries to an install package

2010-09-22 Thread edA-qa mort-ora-y
On 09/23/2010 12:12 AM, Ryan Pavlik wrote: >> If anybody has a good resource, or can recommend some best practices, >> that would be great. > Use CMake and CPack? See the wiki, and elsewhere on the internet. Yes, I am of course using CMake. My question is more along of the lines of how to best ac

Re: [CMake] ccmake and cmake

2010-09-22 Thread David Cole
If you have cmake, you have ccmake. They are not installed separately. ccmake is part of the cmake package. On Wed, Sep 22, 2010 at 6:22 PM, Siddharth Srivastava wrote: > Hi Ryan, > Thanks. Where can i download the latest binary from? I searched and > was only able > to find binaries for c

Re: [CMake] ccmake and cmake

2010-09-22 Thread Siddharth Srivastava
Hi Ryan, Thanks. Where can i download the latest binary from? I searched and was only able to find binaries for cmake. if there is an apt-get way to do it, that would be great! sid. On Wed, Sep 22, 2010 at 3:10 PM, Ryan Pavlik wrote: > On 9/22/2010 4:13 PM, Siddharth Srivastava wrote: > >>

Re: [CMake] best practice way of copying libraries to an install package

2010-09-22 Thread Ryan Pavlik
On 9/22/2010 2:39 PM, edA-qa mort-ora-y wrote: I need to produce a nice self-contained packaged of executables and libraries for my project. I've looked around the web and found many very distinct ways of achieving this. I was wondering if there is some best practice related to this. Ideally I'

Re: [CMake] ccmake and cmake

2010-09-22 Thread Ryan Pavlik
On 9/22/2010 4:13 PM, Siddharth Srivastava wrote: Hi everyone, Just joined the list. How can I tell ccmake to use a specific version of cmake? I have 2.4.7, 2.8.1 and 2.8.2 installed, and I wanted to use 2.8.2. Can I specify this on the command line? Thanks, sid. Each cmake comes with

Re: [CMake] VS Plugin error with VS 2010 and CMake 2.8.3 RC1

2010-09-22 Thread James Bigler
On Wed, Sep 22, 2010 at 3:12 PM, David Cole wrote: > On Wed, Sep 22, 2010 at 5:10 PM, James Bigler wrote: > >> >> >> On Wed, Sep 22, 2010 at 3:06 PM, David Cole wrote: >> >>> On Wed, Sep 22, 2010 at 4:55 PM, James Bigler wrote: >>> On Wed, Sep 22, 2010 at 2:40 PM, David Cole wrote:

Re: [CMake] VS 2010 generator generating project files with non-deterministic order

2010-09-22 Thread James Bigler
Ahh, yes. That would be the issue. I remember filing a similar bug for the VS 2008 generator a couple of years back. And, yes. I am seeing this with 2.8.3-rc1. James On Wed, Sep 22, 2010 at 3:10 PM, David Cole wrote: > Probably related to the notes in this still open bug: > http://public.ki

[CMake] ccmake and cmake

2010-09-22 Thread Siddharth Srivastava
Hi everyone, Just joined the list. How can I tell ccmake to use a specific version of cmake? I have 2.4.7, 2.8.1 and 2.8.2 installed, and I wanted to use 2.8.2. Can I specify this on the command line? Thanks, sid. ___ Powered by www.kitware.com Visi

Re: [CMake] VS Plugin error with VS 2010 and CMake 2.8.3 RC1

2010-09-22 Thread David Cole
On Wed, Sep 22, 2010 at 5:10 PM, James Bigler wrote: > > > On Wed, Sep 22, 2010 at 3:06 PM, David Cole wrote: > >> On Wed, Sep 22, 2010 at 4:55 PM, James Bigler wrote: >> >>> On Wed, Sep 22, 2010 at 2:40 PM, David Cole wrote: >>> On Wed, Sep 22, 2010 at 4:32 PM, James Bigler wrote:

Re: [CMake] VS Plugin error with VS 2010 and CMake 2.8.3 RC1

2010-09-22 Thread James Bigler
On Wed, Sep 22, 2010 at 3:06 PM, David Cole wrote: > On Wed, Sep 22, 2010 at 4:55 PM, James Bigler wrote: > >> On Wed, Sep 22, 2010 at 2:40 PM, David Cole wrote: >> >>> On Wed, Sep 22, 2010 at 4:32 PM, James Bigler wrote: >>> On Wed, Sep 22, 2010 at 2:29 PM, Pedro d'Aquino wrote: >

Re: [CMake] VS 2010 generator generating project files with non-deterministic order

2010-09-22 Thread David Cole
Probably related to the notes in this still open bug: http://public.kitware.com/Bug/view.php?id=10502 I assume this is also with 2.8.3-rc1? On Wed, Sep 22, 2010 at 5:04 PM, James Bigler wrote: > Here's a snippet from my ALL_BUILD.vcxproj: > > > Include="C:/code/rtsdk/rtmain/build-32-vs

Re: [CMake] VS Plugin error with VS 2010 and CMake 2.8.3 RC1

2010-09-22 Thread David Cole
On Wed, Sep 22, 2010 at 4:55 PM, James Bigler wrote: > On Wed, Sep 22, 2010 at 2:40 PM, David Cole wrote: > >> On Wed, Sep 22, 2010 at 4:32 PM, James Bigler wrote: >> >>> On Wed, Sep 22, 2010 at 2:29 PM, Pedro d'Aquino wrote: >>> This happens on 2.8.2 as well, to me at least. In sp

[CMake] VS 2010 generator generating project files with non-deterministic order

2010-09-22 Thread James Bigler
Here's a snippet from my ALL_BUILD.vcxproj: 7CCB65D0-CD84-4FA6-AC9A-A69EA772F224 8234D0A0-8492-45AE-9811-07A69A2A3C48 F3C313C6-58A0-45F6-AEDE-8759DE55B380 9ECE185F-2E06-4071-A9DC-384AB3E41A16 Here's after I run CMake's configure/g

Re: [CMake] VS Plugin error with VS 2010 and CMake 2.8.3 RC1

2010-09-22 Thread James Bigler
On Wed, Sep 22, 2010 at 2:40 PM, David Cole wrote: > On Wed, Sep 22, 2010 at 4:32 PM, James Bigler wrote: > >> On Wed, Sep 22, 2010 at 2:29 PM, Pedro d'Aquino wrote: >> >>> This happens on 2.8.2 as well, to me at least. >>> >>> In spite of that ugly operation aborted dialog, it seems the .sln is

Re: [CMake] VS Plugin error with VS 2010 and CMake 2.8.3 RC1

2010-09-22 Thread James Bigler
Also, what are "filters files"? Sometimes I get a dialog that says: "The filters file for project YYY has been modified outside the environment." I got this instead of the CMake macro dialog: 1>-- Build started: Project: ZERO_CHECK, Configuration: Debug Win32 -- 1> Checking Build System

Re: [CMake] VS Plugin error with VS 2010 and CMake 2.8.3 RC1

2010-09-22 Thread John Drescher
> I know I'll be heartily flamed for even suggesting this, but the way I > work with VS is to shut it down (or at least close the solution file), run > cmake or cmake-gui by hand outside of Visual Studio, and then open up the > sln file again with VS. This avoids the problem you're reporting,

Re: [CMake] VS Plugin error with VS 2010 and CMake 2.8.3 RC1

2010-09-22 Thread David Cole
On Wed, Sep 22, 2010 at 4:32 PM, James Bigler wrote: > On Wed, Sep 22, 2010 at 2:29 PM, Pedro d'Aquino wrote: > >> This happens on 2.8.2 as well, to me at least. >> >> In spite of that ugly operation aborted dialog, it seems the .sln is >> reloaded correctly. >> >> On Wednesday, September 22, 20

Re: [CMake] VS Plugin error with VS 2010 and CMake 2.8.3 RC1

2010-09-22 Thread James Bigler
On Wed, Sep 22, 2010 at 2:29 PM, Pedro d'Aquino wrote: > This happens on 2.8.2 as well, to me at least. > > In spite of that ugly operation aborted dialog, it seems the .sln is > reloaded correctly. > > On Wednesday, September 22, 2010, James Bigler > wrote: > > I tried out CMake 2.8.3 RC1 with

Re: [CMake] VS Plugin error with VS 2010 and CMake 2.8.3 RC1

2010-09-22 Thread Pedro d'Aquino
This happens on 2.8.2 as well, to me at least. In spite of that ugly operation aborted dialog, it seems the .sln is reloaded correctly. On Wednesday, September 22, 2010, James Bigler wrote: > I tried out CMake 2.8.3 RC1 with my project today.  When I modify a > CMakeLists.txt file and compile,

Re: [CMake] VS Plugin error with VS 2010 and CMake 2.8.3 RC1

2010-09-22 Thread James Bigler
On Wed, Sep 22, 2010 at 2:24 PM, John Drescher wrote: > On Wed, Sep 22, 2010 at 4:20 PM, James Bigler > wrote: > > I tried out CMake 2.8.3 RC1 with my project today. When I modify a > > CMakeLists.txt file and compile, the reload project dialog starts up and > I > > click "No" for don't start r

Re: [CMake] VS Plugin error with VS 2010 and CMake 2.8.3 RC1

2010-09-22 Thread John Drescher
On Wed, Sep 22, 2010 at 4:20 PM, James Bigler wrote: > I tried out CMake 2.8.3 RC1 with my project today.  When I modify a > CMakeLists.txt file and compile, the reload project dialog starts up and I > click "No" for don't start recompiling (because it calls ALL_BUILD instead > of the one project

[CMake] VS Plugin error with VS 2010 and CMake 2.8.3 RC1

2010-09-22 Thread James Bigler
I tried out CMake 2.8.3 RC1 with my project today. When I modify a CMakeLists.txt file and compile, the reload project dialog starts up and I click "No" for don't start recompiling (because it calls ALL_BUILD instead of the one project I want to build), and then I get a "the build must be stopped

[CMake] best practice way of copying libraries to an install package

2010-09-22 Thread edA-qa mort-ora-y
I need to produce a nice self-contained packaged of executables and libraries for my project. I've looked around the web and found many very distinct ways of achieving this. I was wondering if there is some best practice related to this. Ideally I'd like to work from the same variables I use for l

Re: [CMake] set_target_properties versus set_source_files_properties

2010-09-22 Thread Michael Wild
On 22. Sep, 2010, at 17:49 , pellegrini wrote: > Michael Wild a écrit : >> On 22. Sep, 2010, at 14:09 , pellegrini wrote: >> >> >>> Hello everybody, >>> >>> my question is in the title ! >>> >>> I want to create a fortran static library using the following set of g95 >>> compiler flags "-O3

Re: [CMake] CMake and Absoft Fortran compilers

2010-09-22 Thread Yngve Inntjore Levinsen
Do you know how to compile for Fortran in general? I don't know the Absoft compiler, but I've used some others. First off you need to enable Fortran language. This you can do by e.g. PROJECT( Fortran CXX C) where you after the project name gives a list of the languages you use in your project.

Re: [CMake] SET (CPACK_PACKAGE_INSTALL_REGISTRY_KEY)

2010-09-22 Thread David Cole
CPack will not find the Unicode version of makensis.exe. That CPack variable does not control that behavior. That CPack variable gives a value for storing things about your installer program in the registry on the end user's machine... The lack of support for the UNICODE makensis version is report

Re: [CMake] SET (CPACK_PACKAGE_INSTALL_REGISTRY_KEY)

2010-09-22 Thread Nicky Perian
What do you hope to achieve by setting this value? Trying to have Cpack see the currently installed NSIS program. Stopped setting CPACK_PACKAGE_INSTALL_REGISTRY_KEY and still have the same error. Cpack cannot find the installed and in path Unicode\makensis.exe ___

Re: [CMake] Build multiple lib

2010-09-22 Thread David Cole
If your goal is to link an executable to MainLib.lib, and MainLib.lib only, then please add all the sources directly to the add_library(MainLib STATIC ...) call. That is the easiest, most logical way to accomplish that task. If it's something else, then elaborate with more details. Perhaps somebo

Re: [CMake] Build multiple lib

2010-09-22 Thread Ryan Pavlik
On Wed, Sep 22, 2010 at 11:19 AM, Andrea Galeazzi wrote: > Citando Michael Wild : > > > >> On 22. Sep, 2010, at 12:48 , Andrea Galeazzi wrote: >> >> Hi everybody, >>> I've got a static lib project in vc6 as follow >>> lib1 >>> lib2 >>> .. >>> libN >>> MainLib >>> >>> The MainLib doesn't actu

[CMake] CMake and Absoft Fortran compilers

2010-09-22 Thread Michael Jackson
Does anyone use CMake in combination with the Absoft fortran compilers? What environment variables would need to be set to have cmake detect the Absoft compilers? Like you can set CC or CXX vars. Thanks for any information. ___ Mike Jack

Re: [CMake] Build multiple lib

2010-09-22 Thread Andrea Galeazzi
Citando Michael Wild : On 22. Sep, 2010, at 12:48 , Andrea Galeazzi wrote: Hi everybody, I've got a static lib project in vc6 as follow lib1 lib2 .. libN MainLib The MainLib doesn't actually have any source but it depends form all the other projects (lib1,.,libN) so it builds a st

Re: [CMake] Build multiple lib

2010-09-22 Thread Ryan Pavlik
On 09/22/2010 10:32 AM, Michael Wild wrote: On 22. Sep, 2010, at 12:48 , Andrea Galeazzi wrote: Hi everybody, I've got a static lib project in vc6 as follow lib1 lib2 .. libN MainLib The MainLib doesn't actually have any source but it depends form all the other projects (lib1,.,libN

Re: [CMake] set_target_properties versus set_source_files_properties

2010-09-22 Thread Michael Wild
On 22. Sep, 2010, at 14:09 , pellegrini wrote: > Hello everybody, > > my question is in the title ! > > I want to create a fortran static library using the following set of g95 > compiler flags "-O3 -std=f2003 -funroll-loops -msse2" > > If I use: > > set_target_properties(my_static_lib PROPE

Re: [CMake] Build multiple lib

2010-09-22 Thread Michael Wild
On 22. Sep, 2010, at 12:48 , Andrea Galeazzi wrote: > Hi everybody, > I've got a static lib project in vc6 as follow > lib1 > lib2 > .. > libN > MainLib > > The MainLib doesn't actually have any source but it depends form all the > other projects (lib1,.,libN) so it builds a static lib

[CMake] set_target_properties versus set_source_files_properties

2010-09-22 Thread pellegrini
Hello everybody, my question is in the title ! I want to create a fortran static library using the following set of g95 compiler flags "-O3 -std=f2003 -funroll-loops -msse2" If I use: set_target_properties(my_static_lib PROPERTIES COMPILE_FLAGS "-O3 -std=f2003 -funroll-loops -msse2") or se

[CMake] Build multiple lib

2010-09-22 Thread Andrea Galeazzi
Hi everybody, I've got a static lib project in vc6 as follow lib1 lib2 .. libN MainLib The MainLib doesn't actually have any source but it depends form all the other projects (lib1,.,libN) so it builds a static lib which contains all the ones. Now my problems is how to write a CMakeLis