Re: [CMake] CPack and configure_file

2011-01-11 Thread Eric Noulard
2011/1/11 Michael Hertling : > On 01/11/2011 12:55 AM, Tobias Ellinghaus wrote: >> >> Because some information (like latest git commit as version string) is no >> longer available when using a source package. Of course I can put the >> generated files into the source tree, but that's kind of agains

Re: [CMake] CPack and configure_file

2011-01-11 Thread Eric Noulard
2011/1/11 Michael Hertling : > On 01/11/2011 09:48 AM, Eric Noulard wrote: [...] >> The fact is CPack doesn't know much about "source package" and >> in fact it package source using the CPACK_INSTALLED_DIRECTORIES directory >> list. >> (look at the genera

Re: [CMake] CMake Java Support

2011-01-11 Thread Eric Noulard
2011/1/11 Andreas Schneider : > On Tuesday 11 January 2011 16:01:14 Andrea Galeazzi wrote: >> Hi Andreas, > > Hi Andrea, > >> I'm a dyed-in-the-wool Java developer (and also Fedora user) so it makes >> me very happy to know that someone are working to integrate Java in >> CMake. My question is: sho

Re: [CMake] Path to installed target

2011-01-12 Thread Eric Noulard
2011/1/12 Alexey Livshits : > Hello, > how can I determine the path to installed target? When ? If it is inside a CMakeLists.txt i.e. at CMake time usually you can't unless you specify absolute install path in your install rules. > The problem is, if I > set DESTDIR for example "D:\", I the insta

Re: [CMake] Path to installed target

2011-01-12 Thread Eric Noulard
2011/1/12 Alexey Livshits : >> Yes, make the tests run without installation. To give more advice, we'd >> need to know more about those "dependencies". Are they other >> executables? Data files? Libraries? > > Well, if I could do that, I wouldn't ask ;) > I have 2 versions, which are built from the

Re: [CMake] CPack tar ownership

2011-01-12 Thread Eric Noulard
2011/1/12 Tim St. Clair : > As a side issue: not all platforms which support the TGZ natively > support fakeroot. > > I think ownership rights should likely be a CPACK option as a result. True off course. Would you be willing to file a feature request and possibly a patch proposal? -- Erk Membre

Re: [CMake] CPack and configure_file

2011-01-12 Thread Eric Noulard
2011/1/12 Tobias Ellinghaus : > Am Tuesday 11 January 2011 schrub Eric Noulard: > > [...] > >> in fact I think the "real" source for this is the fact the CPack lacks >> the notion >> of "EXTRA" distribution file which is available with autoconf

Re: [CMake] Adding custom target to ALL_BUILD or Package

2011-01-13 Thread Eric Noulard
2011/1/13 : > Hello, > I have a doxygen custom target defined which works fine when executed > manually in visual studio but since it is a custom command it is not added as > dependency to ALL_BUILD you can add it to ALL if you specify ALL in add_custom_target: "add_custom_target(Name [ALL] [c

Re: [CMake] Qt4 module too restrictive about uic requirement

2011-01-14 Thread Eric Noulard
2011/1/14 Thomas Petazzoni : > On Mon, 10 Jan 2011 18:34:16 +0100 > Thomas Petazzoni wrote: > >> The FindQt4 module requires the uic executable to be present, otherwise >> it declares the Qt installation as invalid and bails out. >> >> However, Qt can be compiled without the GUI (which is interest

Re: [CMake] Qt4 module too restrictive about uic requirement

2011-01-14 Thread Eric Noulard
2011/1/14 Thomas Petazzoni : > Hello, > > On Fri, 14 Jan 2011 11:06:04 +0100 > Eric Noulard wrote: > >> Clinton Stimpson is the maintainer of the QT4 module >> http://www.cmake.org/Wiki/CMake:Module_Maintainers >> >> He is usually responsive so I bet he w

Re: [CMake] add_custom_command problem

2011-01-17 Thread Eric Noulard
2011/1/17 Andrea Galeazzi : > I'm trying to invoke a program which increment the build number on a header > file. I'm currently using the following statement: > add_custom_command(OUTPUT "./BuildNumber.h" COMMAND "java" ARGS "-jar" >                                        "${TOOLS}\\BuildNumberUpda

Re: [CMake] add_custom_command problem

2011-01-17 Thread Eric Noulard
2011/1/17 Andrea Galeazzi : > Il 17/01/2011 11.09, Eric Noulard ha scritto: >> >> 2011/1/17 Andrea Galeazzi: >>> >>> I'm trying to invoke a program which increment the build number on a >>> header I just realized something. Do you want A) to inc

Re: [CMake] add_custom_command problem

2011-01-17 Thread Eric Noulard
2011/1/17 Andrea Galeazzi : > Il 17/01/2011 12.34, Eric Noulard ha scritto: >> I just realized something. >> Do you want >>    A) to increase the build number EACH time you build >>    B) to increase the build number WHEN of of the SOURCES change? > > The B is de

Re: [CMake] add_custom_command problem

2011-01-17 Thread Eric Noulard
2011/1/17 Andrea Galeazzi : > Eric Noulard ha scritto: > > 2011/1/17 Andrea Galeazzi : > > > Il 17/01/2011 12.34, Eric Noulard ha scritto: > > > I just realized something. > Do you want >    A) to increase the build number EACH time you build >    B) to incr

Re: [CMake] Properly Detecting Win64

2011-01-17 Thread Eric Noulard
2011/1/17 Michael Jackson : > I have the following code: > > if ( "${CMAKE_SIZEOF_VOID_P}" EQUAL "8" ) >        set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-Win64") > elseif( "${CMAKE_SIZEOF_VOID_P}" EQUAL "4" ) >        set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-Win32") > else() >        set(CPA

Re: [CMake] build.h instead of config.h

2011-01-18 Thread Eric Noulard
2011/1/18 luxInteg : > Greetings, > > I am learning cmake.  I progressed to doing configH checks (libtool to cmake > conversion).   I have followed useful tips I obtained from this list  and this > link:- > > http://www.cmake.org/Wiki/CMake:How_To_Write_Platform_Checks > > >  I have a test project

[CMake] Get the list of all TARGETS?

2011-01-18 Thread Eric Noulard
Hi All, Is it possible to get the list of all targets defined in a project (or CMakeLists.txt or directory ...) from within a CMakeLists.txt ? Is there some properties for this? I did search but didn't find anything, but may be I didn't looked in the right place? -- Erk Membre de l'April - « p

Re: [CMake] [CPACK] Add and define an environment variable for NSIS

2011-01-18 Thread Eric Noulard
2011/1/18 Olivier Pierard : > Dear all, > > I would like to add a step for our NSIS installer in order to define an > environment variable to locate a license file which is sent separately > to the package (best would be locating it through a 'browse' button). > > I'm a little bit lost in the CPack

Re: [CMake] Get the list of all TARGETS?

2011-01-18 Thread Eric Noulard
2011/1/18 Clifford Yapp : > Sounds like this issue: > > http://www.cmake.org/pipermail/cmake/2010-September/039388.html > > I can confirm the wrapper function approach works, using it in BRL-CAD. Right, I think a little bit more about it but I think it would be a interesting feature and I may try

Re: [CMake] build.h instead of config.h

2011-01-18 Thread Eric Noulard
2011/1/18 luxInteg : > On Tuesday 18 January 2011 08:23:49 Eric Noulard wrote: > >> May be you can post your CMakeLists.txt here if it's not too big? >> What is your platform/compiler target? >> Linux/gcc, Windows/Visual etc... >> I bet the " -MT  -MD -MP&q

Re: [CMake] check_function_exists frailty

2011-01-19 Thread Eric Noulard
2011/1/19 Jack Poulson : > I have no idea why this would occur, but with CMake 2.8.2 on x86_64 I'm > getting strange behavior with check_function_exists. Namely, if I perform > the sequence > set(CMAKE_REQUIRED_LIBRARIES ${MATH_LIBS}) > check_function_exists(daxpy HAVE_DAXPY) > whether or not /usr/

Re: [CMake] How to query compiler definitions?

2011-01-20 Thread Eric Noulard
2011/1/20 SF Markus Elfring : >> Probably that would be pretty difficult to achieve and definitely would >> break backwards-compatibility beyond resurrection. > > I have got a different opinion. I imagine that a property with a new name > can provide the desired service to retrieve target parameter

Re: [CMake] How to query compiler definitions?

2011-01-20 Thread Eric Noulard
2011/1/20 Rolf Eike Beer : >> When you have such different "levels" of option you may do something like: >> >> OPTION(DEVELOPER_OPT_ENABLE  "Enable developer options" OFF) >> OPTION(SYSTEM_INTEGRATOR_OPT_ENABLE  "Enable system integrator >> specific options" OFF) >> OPTION(TOOL_USERS_OPT_ENABLE  "E

Re: [CMake] directory traverse guidance

2011-01-25 Thread Eric Noulard
2011/1/25 luxInteg : > On Tuesday 25 January 2011 07:53:24 Andreas Pakulat wrote: >> On 25.01.11 02:57:27, luxInteg wrote: >> > Greetings >> > >> > I am learning cmake >> > >> > consider my project  with  two directories  dir1 and dir2 >> > >> > if I want to:- >> > move to dir1 and  add a library l

Re: [CMake] how to specify dependencies out of the source tree?

2011-01-26 Thread Eric Noulard
2011/1/26 Michal Turlik > > Hi all > I am trying to build and link against a dependency out of the source tree. > I tried to arrange a custom target/command combo but it did not work. > Could someone help me with this? > What I really need is how to let cmake and make be correclty launched for >

Re: [CMake] Improvements for cross-referencing in the documentation?

2011-01-27 Thread Eric Noulard
2011/1/27 Alexander Neundorf : > On Thursday 27 January 2011, SF Markus Elfring wrote: >> > That's it currently. >> >> Is it possible that a field or attribute can specify a format identifier >> (in the near future)? > > AFAIK nothing is planned. > With "sounds doable" I meant that this looks like

Re: [CMake] CMake without C/C++ tests

2011-01-28 Thread Eric Noulard
2011/1/28 Дима : > How can I change or disable C/C++ testing during cmake command? project(YourProject NONE) from the doc; Set a name for the entire project. project( [languageName1 languageName2 ... ] ) Sets the name of the project. Additionally this sets the variables

Re: [CMake] Compiler definitions for shared and static builds

2011-01-31 Thread Eric Noulard
2011/1/31 Andreas Pakulat : > On 31.01.11 17:18:58, Louis Hoefler wrote: >> Hello everyone, >> I try to generate a cmake project and want to >> build shared and dynamic libraries in one step. >> >> I therefore added two targets: >> ADD_LIBRARY(${fox_default_libname} STATIC ${fox_cpp_files} >> ${fox

Re: [CMake] problem with ADD_SUBDIRECTORY always inheriting all settings

2011-02-01 Thread Eric Noulard
2011/2/1 Maarten Nieber : > Hi everybody, > I´m mailing to find out what the community thinks of my feature request > (http://public.kitware.com/Bug/view.php?id=5974), which was unfortunately > rejected, and maybe come up with a better idea that serves the same goal. > However, first I want to say

Re: [CMake] CPack, MinGW, strip

2011-02-02 Thread Eric Noulard
2011/2/2 Peter Kümmel : > CMake 2.8.3: > > When I install with "mingw32-make install/strip" > the installed files are stripped. > > But when I set CPACK_STRIP_FILES to 1 and > use NSIS with "mingw32-make package" the binaries > are not stripped. > > CPackConfig.cmake looks correct: > > SET(CPACK_BI

Re: [CMake] CPack, MinGW, strip

2011-02-02 Thread Eric Noulard
2011/2/2 Peter Kümmel : > On 02.02.2011 13:43, Eric Noulard wrote: >> >> 2011/2/2 Peter Kümmel: >>> >>> CMake 2.8.3: >>> >>> When I install with "mingw32-make install/strip" >>> the installed files are stripped. >>>

Re: [CMake] Adding a custom line to CMake's makefiles?

2011-02-02 Thread Eric Noulard
2011/2/2 Clifford Yapp : > Is there any way to customize the Makefile output from CMake to > include user-defined lines (say, something like "#include > Makefile.inc") at the end of each Make file? None that I am aware of. Could you tell us why would you do that? What's inside "Makefile.inc" ?

Re: [CMake] namespace support

2011-02-02 Thread Eric Noulard
2011/2/2 Michael Wild : > > Put a CMakeLists.txt file in a/ and b/ and do the include_directories() > and add_library() calls in there. That's the only way to have separate > include directories since there is no corresponding target property > (which admittedly would be nice to have). As a workar

Re: [CMake] New warnings in CMake 2.8.4-rc2

2011-02-02 Thread Eric Noulard
2011/2/2 Emmanuel Blot : >> Currently, there is no way to turn this off. > > Very, very bad news ;-( > IMHO, this is a recurrent issue with CMake. It seems there is no way > to guarantee that a project that builds well with a version of CMake > will build the same way with the next minor iteration

Re: [CMake] New warnings in CMake 2.8.4-rc2

2011-02-02 Thread Eric Noulard
2011/2/2 Bill Hoffman : > On 2/2/2011 11:14 AM, Emmanuel Blot wrote: >>> >>> Currently, there is no way to turn this off. >> >> Very, very bad news ;-( >> IMHO, this is a recurrent issue with CMake. It seems the > > I was wrong.  Please read Brad King's posts on this, and then see if it > answers y

[CMake] Fwd: Executable in the main directory

2011-02-02 Thread Eric Noulard
Forgot the list initially -- Forwarded message -- From: Eric Noulard Date: 2011/2/2 Subject: Re: [CMake] Executable in the main directory To: Enrique Izaguirre 2011/2/2 Enrique Izaguirre : > Hello, > > Is it possible to create an executable in your top directory if

Re: [CMake] a question about archiving libraries

2011-02-02 Thread Eric Noulard
2011/2/3 mina adel : > > > Hi All > > In my code I use an available libraries (amd btf colamd) > > In order to compile those using cmake I use add_custom_command() to "cd" > into each folder and then run "make" for each library. You should have a look at: ExternalProject_Add from the ExternalProje

Re: [CMake] a question about archiving libraries

2011-02-03 Thread Eric Noulard
2011/2/4 mina adel : > Hi, > Thank you so much for your reply. > > About archiving the libraries, can I use "ar" with "custom_command()" to > archive the three libraries into one big library.? This may not work on all platforms. Some people seems to do the same trick http://www.mail-archive.com/cm

Re: [CMake] [cmake-developers] The CMake bug tracker and "the backlog" of unresolved issues

2011-02-04 Thread Eric Noulard
2011/2/3 David Cole : > Hello CMakers, > > The CMake issue tracker is located at: > http://public.kitware.com/Bug > > All of the issues except for the most recent 15 or so have been assigned and > looked at by at least one CMake developer at one point in each issue's > history. However, not all iss

Re: [CMake] The CMake bug tracker and "the backlog" of unresolved issues

2011-02-04 Thread Eric Noulard
2011/2/4 Tyler Roscoe : > (removing cmake-developers; cross-posting felt wrong) > > On Thu, Feb 03, 2011 at 05:34:45PM -0500, David Cole wrote: >> Since we do not have a status of "backlog" -- but we don't really use the >> status values of "acknowledged" or "confirmed" very much, I am thinking we

Re: [CMake] try_compile generates assertion failure in MSVC 2010

2011-02-04 Thread Eric Noulard
2011/2/4 Dominik Szczerba : > I use try_compile to configure my project and it works fine on linux. > On Windows I get a lovely assertion failure, when calling cmake from > VC command line: > > (typos possible, typed from a popup window) > > Debug Assertion Failed! > Program: > .\cmTryC

Re: [CMake] cpack components & archive generators

2011-02-07 Thread Eric Noulard
2011/2/7 Clinton Stimpson : > > Is there a reason the archive generators append "-ALL" to the package file > name > I specify when I set CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE=1? > > Can we leave that to the user to decide if they want "-ALL" by putting it in > CPACK_PACKAGE_FILE_NAME? Yes there is.

Re: [CMake] cpack components & archive generators

2011-02-07 Thread Eric Noulard
2011/2/7 Clinton Stimpson : > On Monday, February 07, 2011 01:38:22 pm Eric Noulard wrote: >> 2011/2/7 Clinton Stimpson : >> > Is there a reason the archive generators append "-ALL" to the package >> > file name I specify when I set CPACK_COMPONENTS_ALL_IN_

Re: [CMake] CPack/NSIS and launching the application after the installation completed

2011-02-07 Thread Eric Noulard
2011/2/7 Crni Gorac : > On Mon, Feb 7, 2011 at 10:09 PM, David Cole wrote: >> >>  [ ... ] >> >> The commit to fix this bug is in the 2.8.4-rc2 release candidate: >> http://public.kitware.com/Bug/view.php?id=11144 >> >> With it, you can set CPACK_NSIS_MUI_FINISHPAGE_RUN to an executable in your >>

Re: [CMake] Automatic out of source build's possible?

2011-02-08 Thread Eric Noulard
2011/2/8 Martin O'Brien : > While I too find myself sometimes wanting convenience scripts - some people > find the use of '-DENABLE_=ON' instead of --enable-' > foreign, for example - the problem with them, IMO, is that they're > impossible to make crossplatform without requiring the presence of so

Re: [CMake] Automatic out of source build's possible?

2011-02-08 Thread Eric Noulard
2011/2/8 Michael Wild : > And there's the hidden trap that the -D options must be *before* the -P > option. Very nasty, especially for people who never used CMake before. Yes right I was caught by that in the past. > On 02/08/2011 09:27 AM, Martin O'Brien wrote: >> Absolutely, and that is what I

Re: [CMake] Automatic out of source build's possible?

2011-02-08 Thread Eric Noulard
2011/2/8 Martin O'Brien : > I've resisted the urge to patch, since I really don't want to be dependent > on a custom version of CMake. My idea was more like proposing a feature request + patch in order to make the feature go in upstream CMake. I cannot ensure it will but... > As far as how many

Re: [CMake] CPack: CPACK_COMPONENT_GROUP in cmake 2.8.3 / Windows binary zip

2011-02-08 Thread Eric Noulard
2011/2/8 Mathieu Malaterre : > All, > >  I am trying to generate binary zip of my project using CPack 3.8.3 > and looks like now it generates two zip files where each file has the > name of the group. Did anyone noticed this change ? How do I revert it > back to the old behavior all groups in the s

Re: [CMake] CPack: CPACK_COMPONENT_GROUP in cmake 2.8.3 / Windows binary zip

2011-02-08 Thread Eric Noulard
2011/2/8 Mathieu Malaterre : > Hi Eric, > >  Thanks a bunch for your tremendous work ! You're welcome, feedback of this feature is welcomed. >  Quick question would this means that the warning will also go away: > > "CPack warning: both CPACK_COMPONENTS_ALL and CPACK_MONOLITHIC_INSTALL > have bee

Re: [CMake] CPack: CPACK_COMPONENT_GROUP in cmake 2.8.3 / Windows binary zip

2011-02-08 Thread Eric Noulard
2011/2/8 Clinton Stimpson : >> >> I also saw that warning with this example (there's nothing in this example >> about a MONOLITHIC install): >> >> cmake_minimum_required(VERSION 2.8) >> project(hello) >> install(CODE "message(installing...)" COMPONENT Hello) >> set(CPACK_COMPONENTS_ALL Hello) >> se

Re: [CMake] cpack, debian and python virtualenvs:

2011-02-10 Thread Eric Noulard
2011/2/10 Nathan J. Mehl : > > > On Thu, Feb 10, 2011 at 1:56 PM, David Cole wrote: >> >> Probably comes from here: >> cmCPackDebGenerator.cxx: >> this->SetOptionIfNotSet("CPACK_PACKAGING_INSTALL_PREFIX", "/usr"); > > *DING* > > Sigh, would have been nice if that had been anywhere in the documenta

Re: [CMake] CPACK_STRIP_FILES has no effect on DSOs

2011-02-11 Thread Eric Noulard
2011/2/11 Moritz Moeller : > On 02/11/2011 09:56 AM, Moritz Moeller wrote: >> None of the DSOs gets stripped. Is this intentional with shared libs? >> Any workaround or anything I am missing? > > So I worked around this myself by setting > >  set( CMAKE_MODULE_LINKER_FLAGS -s ) > > And I am aware I

Re: [CMake] CPACK_STRIP_FILES has no effect on DSOs

2011-02-11 Thread Eric Noulard
2011/2/11 Moritz Moeller : > On 02/11/2011 10:57 AM, Eric Noulard wrote: >> Which kind of CPack package are you building? >> DEB, RPM, TGZ, etc... > > I am building a tbz2. > But this should happen long before the package is compressed, innit. Nope. With CPACK_STRIP_FILES

Re: [CMake] Link directories

2011-02-14 Thread Eric Noulard
2011/2/14 Robert Bielik : > Hi all, > > I seem to be missing something, cause I cannot find a target property for > setting additional library directories (for a MSVC project) Usually you do not specify "additional lib directories" you should specify all libs you need with "target_link_libraries".

Re: [CMake] Setting target destination and rpath per generator

2011-02-15 Thread Eric Noulard
2011/2/15 Daryl N : > Hi, > > I have a question on the use of CPack.  I have CMake setup to generate > binaries and shared libraries.  Up until now I have only created a TGZ with > rpath set to ".".  This has worked nicely, but now I would like to create a > Debian package for proper installation. 

Re: [CMake] Setting target destination and rpath per generator

2011-02-15 Thread Eric Noulard
2011/2/15 David Cole : > You cannot do "cmake-ish" things in the CPACK_PROJECT_CONFIG_FILE. > > Neither install commands nor set_target_properties calls do anything in this > context. Yes you are right, but we may have expected that "CMAKE_INSTALL_RPATH" may be used at INSTALL time just like "CMAK

Re: [CMake] cpack 32bit rpm on a 64bit system

2011-02-15 Thread Eric Noulard
2011/2/15 Yngve Inntjore Levinsen : > Dear CMakers, > > I am trying to package a 32bit binary on a 64bit system. It breaks with the > (useless?) verbose output which follows below. What I could find of useful > information was in _CPack_Packages/Linux/RPM/rpmbuild.err, which stated > error: No co

Re: [CMake] cpack 32bit rpm on a 64bit system

2011-02-16 Thread Eric Noulard
2011/2/16 Yngve Inntjore Levinsen : > Dear Eric, > > First, thank you for a very quick reply! > > The log you requested is attached. The rpmbuild.out file is empty, and the > rpmbuild.err has one line which states: > error: No compatible architectures found for build > > I am using cmake/cpack ver

Re: [CMake] cpack 32bit rpm on a 64bit system

2011-02-16 Thread Eric Noulard
2011/2/16 Yngve Inntjore Levinsen : > > The server OS is quite conservative when it comes to new packages, so I > already had to go into a fight to get 2.6 series installed. I do not think > that is possible system-wide but I am of course able to compile cmake myself > and put it on my own share

Re: [CMake] cpack 32bit rpm on a 64bit system

2011-02-17 Thread Eric Noulard
2011/2/17 Yngve Inntjore Levinsen : > Dear Eric, > > So I answered my own question perhaps, the very issue was in fact that I set > CPACK_RPM_PACKAGE_ARCHITECTURE to i686 when I tried to build. Commenting out > that part and the packaging worked. OK. > Two questions: > > - Will this package now

Re: [CMake] Gyp VS CMake

2011-02-17 Thread Eric Noulard
2011/2/17 Felipe Ferreri Tonello : > On Thursday 17 February 2011 06:15:34 Nicolas Desprès wrote: >> >> That being said, I feel sad to see other CMake's like projects started >> instead of contributing. >> >> Regards, > > I'm with you. I don't know why there are companies or people who starts other

Re: [CMake] Setting global make variable from CMake,

2011-02-21 Thread Eric Noulard
2011/2/21 Łukasz Tasz : > Hi All, > > Could somebody help me how to provide own predefined make varibable from > cmake configuration? > Such a variable should be avaliable in the context of all generated > makefiles. Since the makefiles are generated by CMake WHY do you need to define a "make" var

Re: [CMake] Setting global make variable from CMake,

2011-02-21 Thread Eric Noulard
2011/2/21 Łukasz Tasz : > 2011/2/21 Eric Noulard : >> What is your use case? > > In my case I'm making integration with ccache, and distcc, and as you > know all of them are tuned only via ENV_VARS. > Depending on CMAKE_BUILD_TYPE, compiler version, OS I would

Re: [CMake] Setting global make variable from CMake,

2011-02-21 Thread Eric Noulard
2011/2/21 Michael Wild : >>> Do you know such a call can be configured? >>> for example: >>> export MYVARIABVLE=test; cd dir; compiler_call >> >> I don't think there is an easy way to do that from within CMake. >> You would need some way to set env var "before" launching the compile rule >> the on

Re: [CMake] cpack issue: %1 is not a valid Win32 application

2011-02-24 Thread Eric Noulard
2011/2/24 thehighhat : > On Thu, Feb 24, 2011 at 12:20 PM, David Cole wrote: >> Do you have the same problem if you use a real binary for the 'make' instead >> of this symlink? > > Yes, the same problem persists. > > I started with a clean builddir.  Changed all references to use the > actual file

Re: [CMake] cpack issue: %1 is not a valid Win32 application

2011-02-24 Thread Eric Noulard
2011/2/25 Martin O'Brien : > I haven't really read most if this thread, so this may not apply, but this > dialog box can be caused by trying to run a Win64 application on Win32, or > trying to run any binary other than Win32 with a format that Windows > understands on Win32. Interesting, Is the N

Re: [CMake] BUG: Special chars in user name. Configure error.

2011-02-27 Thread Eric Noulard
2011/2/27 : > Hello i got some bug. > I use W7 and username "C&C". > So when i run "Configure" in gui under this user, Cmake throws an error: >  "cant build simple programm... and more unknown chars..." (full error log > attached) and this not error of compiler. > But when i run it on other user n

Re: [CMake] Multiple Package Generators and add_package command

2011-02-27 Thread Eric Noulard
2011/2/26 Orcun Gokbulut : > I'm trying to find out a way to generate multiple packages from a big > project. There are some patches and hack available but I'm not experienced > cmake user and I can not figure out how to use them. > > IMHO, an add_package command can be usefull instead of configuri

Re: [CMake] CMake Error: Error processing file

2011-02-27 Thread Eric Noulard
2011/2/28 Stephen Thomas : > Hello, > I'm very new to cmake and I'm attempting to build the webcamtools package. >  While I've been able to get CMake to work properly on the host I'm working > on I really need it to configure for cross-compiling to a embedded ARM > TS-7800 board.  In reading throug

Re: [CMake] Multiple library configurations with the same output name

2011-03-03 Thread Eric Noulard
2011/3/3 Alexey Livshits : > Hello CMakers, > suppose I've got a library foo with tow configurations: foo_1 and > foo_2. Both versions should have the same output name: foo. The > problem is, the output directory for both ist the same, so the second > will overwrite the first. You can definition t

Re: [CMake] Multiple library configurations with the same output name

2011-03-04 Thread Eric Noulard
2011/3/4 Alexey Livshits : >> You can definition two different library target >> and use OUTPUT_NAME property to adjust the name >> >> add_library(foo1 ${foo_source}) >> set_target_properties(foo1 PROPERTIES >>                                       OUTPUT_NAME foo) >> >> add_library(foo2 ${foo_sour

Re: [CMake] CPack and RPM packages

2011-03-04 Thread Eric Noulard
2011/3/4 Laszlo Papp : > Hi, > > Can I create an rpm package with cpack in order to not deal with spec files ? Yes you can CPackRPM is meant to do that: http://www.cmake.org/Wiki/CMake:CPackPackageGenerators#RPM_.28Unix_Only.29 The fastest path is to try: $ cd /path/to/builddir $ cpack -G RPM >

Re: [CMake] Multiple library configurations with the same output name

2011-03-04 Thread Eric Noulard
2011/3/4 Alexey Livshits : >> I am not a Visual Studio user so I may be missing your point here >> but why having foo_1 and foo_2 ending up in the same workspace is a problem? >> >> As long as the lib/dll end up in separate dirs (using *_OUTPUT_DIRECTORY). > > Workspaces become too large, so I woul

Re: [CMake] CPack and RPM packages

2011-03-04 Thread Eric Noulard
2011/3/4 Laszlo Papp : > On Fri, Mar 4, 2011 at 3:05 PM, Eric Noulard wrote: >> 2011/3/4 Laszlo Papp : >>> Hi, >>> >>> Can I create an rpm package with cpack in order to not deal with spec files >>> ? >> >> Yes you can C

Re: [CMake] Cmake with Cray Fortran

2011-03-05 Thread Eric Noulard
2011/3/5 Tim Gallagher : > Hi, > > I'm trying to use cmake with the Cray Fortran compiler. The compiler is > wrapped through a script called ftn. > > When I have the PrgEnv-pgi (pgi compiler) or the PrgEnv-gnu modules loaded, > it works with no issue. > > But, when I have it set to PrgEnv-cray, i

Re: [CMake] Cmake with Cray Fortran

2011-03-05 Thread Eric Noulard
2011/3/5 Tim Gallagher : > Eric, > > Excellent! Thanks! > > I don't know a whole lot about CMake (yet) -- would it be possible to make > older versions aware of the compiler if I were to package only the updated > files rather than install my own version of CMake? In other words, was it > someth

Re: [CMake] CPack and RPM packages

2011-03-05 Thread Eric Noulard
2011/3/5 Laszlo Papp : > Well, first I cannot build :) I thought you were already using CPack for Deb package? If you never used a cross-compiling setup with CMake then read this first: http://www.cmake.org/Wiki/CMake_Cross_Compiling [...] -- Erk Membre de l'April - « promouvoir et défendre le

Re: [CMake] Cmake with Cray Fortran

2011-03-06 Thread Eric Noulard
2011/3/5 Tim Gallagher : > It's not an option to do a global install. These are US government owned > clusters. I asked them if they could install it and they won't for awhile -- > they tend to remain a few versions back on everything until they run > extensive tests on new versions. Conservati

Re: [CMake] CPack and RPM packages

2011-03-06 Thread Eric Noulard
2011/3/5 Laszlo Papp : > On Sat, Mar 5, 2011 at 5:32 PM, Eric Noulard wrote: >> 2011/3/5 Laszlo Papp : >>> Well, first I cannot build :) >> >> I thought you were already using CPack for Deb package? >> >> If you never used a cross-compiling setup w

Re: [CMake] CPack and RPM packages

2011-03-06 Thread Eric Noulard
2011/3/6 Laszlo Papp : > CPack froze for hours What happened ? Seems a "nice" infinite loop... > Idea ? > > Best Regards, > Laszlo Papp > > cpack > CPack: Create package using RPM > CPack: Install projects > CPack: - Run preinstall target for: Gluon try with verbose/debug mode: cpack --verbo

Re: [CMake] CPack and RPM packages

2011-03-06 Thread Eric Noulard
2011/3/6 Laszlo Papp : > Hi, > > I do not get the infinite loop right now (not sure what caused it > then), but I get an error while trying. > > djszapi@djszapi:/home/meego/gluon/buildroot /home/meego/gluon/build #  cpack > CPack: Create package using RPM > CPack: Install projects > CPack: - Run pr

Re: [CMake] CPack and RPM packages

2011-03-06 Thread Eric Noulard
2011/3/6 Laszlo Papp : > Mmh, my previous mail is blocked because the cpack.log is too big. > > http://djszapi.homelinux.net/rpmbuild.out > http://djszapi.homelinux.net/rpmbuild.err > http://djszapi.homelinux.net/cpack.log I do not quite understand what makes rpmbuild fail. Could you send me [a l

Re: [CMake] CPack and RPM packages

2011-03-07 Thread Eric Noulard
2011/3/7 Laszlo Papp : > Any progress on it ? Nope. I won't be very responsive this week. > One more information, this n900-devel image uses > internally qemu and I am not sure that can cause any issue for the > build system. I don't like I said I'm not that experienced with cross-compiling env.

Re: [CMake] CPack and RPM packages

2011-03-07 Thread Eric Noulard
2011/3/7 Laszlo Papp : > As said, the working OBS spec files can be found here: > http://repo.pub.meego.com/home:/sandst1/standard/armv7l/ > http://repo.pub.meego.com/home:/sandst1/standard/i586/ Not really, since binary RPMs do not contains the spec file, but I did find the spec file in src: http

Re: [CMake] CPack and RPM packages

2011-03-07 Thread Eric Noulard
2011/3/8 Laszlo Papp : > Well: http://public.kitware.com/Bug/view.php?id=11595 > That is fixed in cmake 2.8.4. > Changelog: http://www.cmake.org/pipermail/cmake/2011-February/042839.html > "CPackRPM fix bug 0011595 : Can't generate RPMs (on FC11...)" > > I am trying to build this  version now on Me

Re: [CMake] CPack and RPM packages

2011-03-07 Thread Eric Noulard
2011/3/8 Laszlo Papp : > On Tue, Mar 8, 2011 at 12:45 AM, Eric Noulard wrote: >> 2011/3/8 Laszlo Papp : >>> Well: http://public.kitware.com/Bug/view.php?id=11595 >>> That is fixed in cmake 2.8.4. >>> Changelog: http://www.cmake.org/pipermail/cmake/2011-Februa

[CMake] CMake hanging when run inside QEmu

2011-03-07 Thread Eric Noulard
Hi, I am starting a separate thread on this "hanging" issue. -- Forwarded message -- From: Laszlo Papp Date: 2011/3/8 Subject: Re: [CMake] CPack and RPM packages To: Eric Noulard Cc : CMake ML 1st run: ca -- The C compiler identification is GNU -- The CX

Re: [CMake] CPack and RPM packages

2011-03-08 Thread Eric Noulard
2011/3/8 Laszlo Papp : > I could not still build cmake.. But I did this modification > locally you suggested and that is the output: > > CPack: Create package using RPM > CPack: Install projects > CPack: - Run preinstall target for: Gluon > CPack: - Install project: Gluon > CPack: Create packag

Re: [CMake] Sub components with CPack and NSIS

2011-03-08 Thread Eric Noulard
2011/3/8 NoRulez : > Hello everyone, > > is there a way to generate sub and sub sub components with CPack and Nsis? Yes theoretically there is. But I never tried. > I would like to have the following structure, but I couldn’t figure out how > to do this: > > Component > | > +---

Re: [CMake] Sub components with CPack and NSIS

2011-03-08 Thread Eric Noulard
2011/3/8 NoRulez : > Ok, > > I mean a parent group instead of sub component. > But i doesn't find any documentations about this too. look in CPack.cmake or cmake --help-module CPack > If it isn't implemented in CPack, can i mix cpack and nsis scripts, and if so > how? CPack is using a NSIS tem

Re: [CMake] newbie q - where do I put what in which CMakeLists file? out of source build

2011-03-10 Thread Eric Noulard
2011/3/10 David Cole : > Well if the build directory is *in* the source directory, then make > package_source *should* include it. > > This is not a problem, but the expected behavior. > If you don't want the build tree in the source tree, then don't put it > there. Or do include "${CMAKE_BINARY_D

Re: [CMake] infinite loop when using function overriding

2011-03-10 Thread Eric Noulard
2011/3/9 David Cole : > This is a question for folks at Stack Overflow. Literally. :-) > > I'm assuming you mean "_add_library(${name} ${ARGN})"? > > The "override and call original with a leading _" is probably not well > documented anywhere. While it's useful on occasion, we do not recommend > us

Re: [CMake] How to set different install scripts into different component RPMs

2011-03-13 Thread Eric Noulard
2011/3/13 徐亮 : > I have a big project that include lib1, lib2, app1, app2. > Before CPack 2.8.4, app1 and app2 have standalone CMakeLists.txt and > pack RPM independently. So I can set  different pre/post install > scripts to these RPMs. > In CPack 2.8.4, I can generate two component RPM for app1 a

Re: [CMake] Configuring external projects with cmake for a nonexistent install directory which is not configure-time writable

2011-03-14 Thread Eric Noulard
2011/3/14 The Wanderer : > (I apologize for setting the Reply-To header, but I know of no other way > to prevent my being sent an additional off-list copy of any reply even > when there is no specific need to draw my attention to that reply.) > I am running cmake 2.8.2, installed via Debian testin

Re: [CMake] Compiling multiple files, only takes the first one

2011-03-14 Thread Eric Noulard
2011/3/14 Enrique Izaguirre : > Hello friends, > > I have a problem when I try to compile several files, for some reason it > takes only the first of the list to build it. > It displays a few warnings and at the end the following error: > > make[2]: *** [CMakeFiles/omap.dir/host/fastboot.c.o] Error

Re: [CMake] Asm support

2011-03-15 Thread Eric Noulard
2011/3/15 Robert Bielik : > Robert Bielik skrev 2011-03-15 08:59: >> >> Using 2.8.4, I'm trying to add an assembler file with cmake (64 bit VS2008 >> build), but I'm at a loss, I tried: There has been a lot of work done (Alex and Brad I think) in topic "ReworkedAsmSupport" it has been merged to ma

Re: [CMake] Deb Package messages only if deb is available

2011-03-17 Thread Eric Noulard
2011/3/17 Dixon, Shane : > I want to add some messages at the end of cmake that display all the > DEB-related variables and what they’re set to.  I’d prefer to now shows > these when building on windows where DEB isn’t available.  Is there > something like > > > >   If(DEBIAN_FOUND) This is not cu

Re: [CMake] set_target_properties to target openmp flag on an executable

2011-03-18 Thread Eric Noulard
2011/3/18 Caner Candan : > Hi all, > > Since I have several targets to compile, I was looking for a way to > set some specific flags to one target among all others. In my example > I would like to set the openmp flag to the target test and I got an > error with the code below: > > -

Re: [CMake] Too many packages being created for my project with CPack

2011-03-26 Thread Eric Noulard
2011/3/25 Tyler : > I just use: > > set (CPACK_GENERATOR "ZIP") > > and that seems to work. > > I think those CPACK_BINARY_* variables you're setting are only > meaningful in CPack's context, not in CMake's (i.e. those vars are > what CMake writes out in CPackConfig.cmake for Cpack's later use). T

Re: [CMake] [cmake-developers] Bug fix requests for the *next* release of CMake...

2011-03-29 Thread Eric Noulard
2011/3/29 David Cole : > > Please discuss issues here as needed, and add notes to existing issues in > the bug tracker that you are interested in seeing fixed for 2.8.5 -- we will > be looking at the mailing list and activity in the bug tracker to help > prioritize the bug fixes that will occur ove

<    1   2   3   4   5   6   7   8   9   10   >