Re: [CMake] How to list user-definable CMake variables

2010-09-28 Thread Eric Noulard
2010/9/28 Marcel Loose lo...@astron.nl: On 28. Sep, 2010, at 9:33 , Marcel Loose wrote: Hi all, I was wondering how I could generate a list of user-definable CMake variables. This list, with a brief help per variable, would be *very* useful for the end-user. It's a bit like the

Re: [CMake] How to list user-definable CMake variables

2010-09-28 Thread Eric Noulard
2010/9/28 Marcel Loose lo...@astron.nl: You may want to call your target help but it would conflict/override the cmake builtin help target (at least for makefile generator) which display the list of available target. This work AFTER cmake has been run. It could be run before as well using:

[CMake] Howto compile static executable?

2010-09-28 Thread Eric Noulard
Hi All, I have project which (cross-)compile some simple C applications with some bare CMake statement like this: add_executable(myapp myapp.c) no target_link_libraries, no dep, etc... I want to build fully static executable (even for libc etc...) Currently I do: set_target_properties(myapp

Re: [CMake] file COPY/INSTALL doesn't overwrite existing files?

2010-09-30 Thread Eric Noulard
2010/9/30 Guillaume Duhamel guillaume.duha...@gmail.com: Hi, I'm trying to use file(COPY ... during the build of one of my project. file(COPY ... is a **CMake-time** command, i.e. it will be processed when CMake runs and not when building (unless make is triggering a cmake run) If you want

Re: [CMake] CMake/Buildbot xplat upload?

2010-10-01 Thread Eric Noulard
2010/10/1 fat...@crackmonkey.us: Hi list, I Googled for this but didn't find anything. CMake is integrating well with Buildbot to make a sort of poor-man's build farm. The one thing I can't seem to work out is a crossplatform way to upload CPack-built packages (Windows and Linux) to a web

Re: [CMake] rpmbuild breaks if HOME is wrong

2010-10-04 Thread Eric Noulard
2010/10/4 fat...@crackmonkey.us: Hi list, I notice rpmbuild tries to use the HOME directory as a base for its files. This won't work if HOME is set wrongly (eg. by sudo -u other bash), as in my case. If you are speaking about CPackRPM generator then NO it shouldn't use HOME dir. If it is

Re: [CMake] rpmbuild breaks if HOME is wrong

2010-10-04 Thread Eric Noulard
2010/10/4 fat...@crackmonkey.us: On Mon, 4 Oct 2010 18:19:20 +0200 Eric Noulard eric.noul...@gmail.com wrote: If you are speaking about CPackRPM generator then NO it shouldn't use HOME dir. If it is the case then may be you have a some custom .rpmrc somewhere? Oh. I guessed

Re: [CMake] rpmbuild breaks if HOME is wrong

2010-10-05 Thread Eric Noulard
2010/10/5 fat...@crackmonkey.us: On Mon, 4 Oct 2010 20:45:21 +0200 Eric Noulard eric.noul...@gmail.com wrote: May be you can check in the generated spec file whether if this field has an appropriate value. Apologies/length. [SNIP] Ok now I see the precise scheme. I'll try to reproduce

Re: [CMake] Adding a library to link in during TRY_RUN with Windows/nmake?

2010-10-12 Thread Eric Noulard
2010/10/12 Clifford Yapp cliffy...@gmail.com: I'm trying to compile some C code using TRY_RUN that uses gethostname, but in order for this code to succeed on Windows it needs /link ws2_32.lib added to the compile line.  I have tried putting this string into the ARGS variable of TRY_RUN and a

Re: [CMake] How to rename the resulting Makefile.

2010-10-12 Thread Eric Noulard
2010/10/12 william.croc...@analog.com william.croc...@analog.com: Hello: I'm a newbie cmake user and would like to rename the makefile produced by running cmake. As far as I know there is none. But... may be you could do a out-of-source build

Re: [CMake] How to rename the resulting Makefile.

2010-10-12 Thread Eric Noulard
2010/10/12 william.croc...@analog.com william.croc...@analog.com: [ elided ] So, is there a command I can place in my CMakeLists.txt files which will cause them to produce a file named xyz.make (let's say) instead of Makefile. Thanks in advance. Use out of source builds, and there

Re: [CMake] How to rename the resulting Makefile.

2010-10-12 Thread Eric Noulard
2010/10/12 william.croc...@analog.com william.croc...@analog.com: I will use cmake to build the app on my various platforms (Linux/Windows...). Most of my convenience targets are only used during development (Linux) so it is typically okay that they are not cross platform. ACK. file(

Re: [CMake] CPACK deb package Problem

2010-10-14 Thread Eric Noulard
Hi Chang, 2010/10/14 Chang Yu Huang yill...@gmail.com: Here is my CMakeLists.txt file, and when I use the make and make install command, I can successfully install all files into the file system. You think you do but in fact you don't :-], but keep reading. However, when I use the make

Re: [CMake] Possible changes in CPackRPM.cmake in version 2.8.0

2010-10-14 Thread Eric Noulard
2010/10/14 Karl Krissian kriss...@dis.ulpgc.es:  Hi, I made the following changes to the file /usr/share/cmake/Modules/CPackRPM.cmake to be able to use it for my software: diff /home/karl/amilab_trunk/CMAKE/CPackRPM.cmake /usr/share/cmake/Modules/CPackRPM.cmake 283,285c283              

Re: [CMake] Possible changes in CPackRPM.cmake in version 2.8.0

2010-10-15 Thread Eric Noulard
2010/10/15 Karl Krissian kriss...@dis.ulpgc.es: OK, It worked with the nightly build of cmake. Ok then that's fine. Thank you for testing. -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org ___ Powered

Re: [CMake] Bootstrap script generation?

2010-10-15 Thread Eric Noulard
2010/10/15 Clifford Yapp cliffy...@gmail.com: CMake itself, when building from source, has a bootstrap script it uses to get going.  Can such scripts be generated by CMake for other project to enable building on machines without CMake? Do you mean is CMake polymorphic and pretend it is

Re: [CMake] Complete rebuild after svn update

2010-10-18 Thread Eric Noulard
2010/10/18 Alex Brooks a.bro...@marathon-targets.com: Hi, I have a problem where cmake decides to rebuild my entire source tree when an svn update pulls in a change to a CMakeLists.txt file. I have a fairly complicated build tree with a number of sub-libraries etc. The whole thing takes

Re: [CMake] How to choose different complier?

2010-10-18 Thread Eric Noulard
2010/10/18 董隆超 donglongc...@163.com: Hi,everybody I am new to CMake and I have a question. I think CMake choose complier based on the file name.If it is .cpp,CMake will use g++, if it is .c,gcc will be used.Is it right?So to switch between g++ and gcc,I have to change the file name every

Re: [CMake] Cmake Releases

2010-10-20 Thread Eric Noulard
2010/10/20 Mohammed Aziz Parande paran...@umbc.edu: Dear Developers, I am a graduate student from University of Maryland Baltimore County. I have a simple question pertaining to Cmake Development Cycle. Has Cmake gone under some refactoring efforts before any of its release? If yes could

Re: [CMake] Creating Debian source packages with CMake

2010-10-21 Thread Eric Noulard
2010/10/20 Daniel Pfeifer dan...@pfeifer-mail.de: What would a 'debian/rules' file that used CPack look like? The `debian/rules` file that is generated by my script does currently not rely on CPack since CPack cannot generate more than one package. In order to be sure I make myself clear.

Re: [CMake] CMake with CPack - unresolved libraries

2010-10-25 Thread Eric Noulard
2010/10/25 Marcin Czenko marcin.cze...@sioux.eu: Hello everybody. I need your help to solve the following problem. The installed version of CMake is:  2.8.0. The installed version of CPack is: 2.8.0. I am running on Ubuntu LTS 10.04. I have a CMake project. The output of the project is an

Re: [CMake] cmake policy setting

2010-10-29 Thread Eric Noulard
2010/10/29 Marco Atzeri marco_atz...@yahoo.it: As there is no example in the documentaion, could someone clarify me if the change of any policy that should require an additional cmake_policy(SET CMP NEW) could also be requested at cmake invocation with

Re: [CMake] How to differ?

2010-10-29 Thread Eric Noulard
2010/10/29 Thomas Lehmann t.lehm...@rtsgroup.net Hi, I’m new to the cmake tool trying to find out how to apply this best to our system. Here’s a problem I would like to know how to do best: Assume following setup: -  /projects/libs/one -  /projects/libs/two - 

Re: [CMake] How to differ?

2010-10-29 Thread Eric Noulard
2010/10/29 Thomas Lehmann t.lehm...@rtsgroup.net: At the end you can see a version which was working well but we found it somewhat complicated with the paths. I did not see any attachment or inline copy of CMakeLists.txt [...] and for each app there will be some

Re: [CMake] rpath business: CPack / running binaries in the build dir

2010-11-02 Thread Eric Noulard
2010/11/2 Szilárd Páll szilard.p...@cbr.su.se: Hi, In order to be able to run binaries linked dynamically to some libraries from the same project the rpath in the build directory has to point to the lib directory in the build directory. However, this brakes CPack which seems to require the

Re: [CMake] CMake 2.8.3-rc4 ready for testing!

2010-11-03 Thread Eric Noulard
2010/10/30 David Cole david.c...@kitware.com: The CMake 2.8.3 release candidate stream continues! You can find the source and binaries here: http://www.cmake.org/files/v2.8/?C=M;O=D EXCEPT: There are not yet Irix or Sun pre-built binary installers available for CMake 2.8.3-rc4. There is a

Re: [CMake] CMake 2.8.3-rc4 ready for testing!

2010-11-03 Thread Eric Noulard
2010/11/3 Bill Hoffman bill.hoff...@kitware.com: The reason this is showing up is because they are compiling a .h file: LIST(APPEND LIBHLA_EXPORTED_INCLUDES sha1.h) set_source_files_properties(sha1.c sha1.h PROPERTIES LANGUAGE C) SOURCE_GROUP(Source Files\\Hash FILES ${LIBHLA_HASH_SRCS})

Re: [CMake] CMake 2.8.3-rc4 ready for testing!

2010-11-03 Thread Eric Noulard
2010/11/3 David Cole david.c...@kitware.com: It should be fine. CMake should handle .h files that have this property set. We should fix it. (And we will -- probably in the 2.8.4 release.) OK no problem. Sorry for being late to test that combination but I'm not usually using Windows box and

Re: [CMake] CMake 2.8.3-rc4 ready for testing!

2010-11-04 Thread Eric Noulard
2010/11/4 Bill Hoffman bill.hoff...@kitware.com: But, for now, you should be able to work around it on your side by removing the sha.1 from the list of files in your set_source_files_properties call. True just tested that. It works. I meant ...removing the sha1.h from ... I inferred that

Re: [CMake] CMake 2.8.3 available for download

2010-11-04 Thread Eric Noulard
2010/11/4 Micha Renner micha.ren...@t-online.de: Unpacking cmake-2.8.3.tar.gz, cmake-2.8.3-Linux-i386.tar.gz results in the following error message of the archive manager: gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now Those are ok for

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

2010-11-04 Thread Eric Noulard
2010/11/4 David Cole david.c...@kitware.com: Hi all, Now that we have released CMake 2.8.3, *now* would be a great time to prioritize bug fixes for the next release of CMake. Replies requested. Read on. Just a short reply with bug numbers or links to the bugs is all we need here. Please

Re: [CMake] header files with visual studio

2010-11-06 Thread Eric Noulard
2010/11/6 Pedro d'Aquino bud...@gmail.com: On Friday, November 5, 2010, Oliver kfsone Smith osm...@playnet.com Thanks for the detailed response, Michael :) So, the question is actually: Is there a way to have CMake automatically add included headers to visual studio project files or do

Re: [CMake] help with learning add_library

2010-11-06 Thread Eric Noulard
2010/11/7 luxInteg lux-in...@btconnect.com: I tried the following:- ADD_LIBRARY(LearnCMAKE-shared SHARED   file1.c file2.c ) ADD_LIBRARY(LearnCMAKE-static STATIC  file1.c file2.c ) SET(var ) FOREACH(var DINT DLONG)        SET_SOURCE_FILES_PROPERTIES( file1.c file2.c    PROPERTIES

Re: [CMake] cmake gfortran-libs linking x86_64

2010-11-07 Thread Eric Noulard
2010/11/7 luxInteg lux-in...@btconnect.com: Greetings, I am learning cmake   I have the following gfortran libraries on my computer:- rt [ ~ ]$ rt [ ~ ]$ ls -l  /usr/lib/*gfortran* -rw-r--r-- 1 root root 8489924 Jul 27 12:19 /usr/lib/libgfortran.a -rwxr-xr-x 1 root root     952 Jul 27

Re: [CMake] help with learning add_library

2010-11-08 Thread Eric Noulard
2010/11/8 luxInteg lux-in...@btconnect.com: On Saturday 06 November 2010 23:08:29 Eric Noulard wrote: I think you cannot use **the same** file properties on a source file and expect CMake will compile the file twice for the same target. If you want to compile the same source file twice

Re: [CMake] help with learning add_library

2010-11-08 Thread Eric Noulard
2010/11/8 luxInteg lux-in...@btconnect.com: If you manipulate list have a look at the CMake builtin LIST command. I   had a look at lists  on this page http://www.cmake.org/Wiki/CMakeMacroListOperations You should reallty use **builtin** list

Re: [CMake] header files with visual studio

2010-11-11 Thread Eric Noulard
2010/11/10 Oliver kfsone Smith osm...@playnet.com: Eric Noulard said the following on 11/6/2010 6:20 AM: Initially it may be a pain to list them but after a while its generally better to manually keep track of file (dis)appearing in your source tree. (which is usually what you do when using

Re: [CMake] header files with visual studio

2010-11-14 Thread Eric Noulard
2010/11/13 Oliver kfsone Smith osm...@playnet.com: I mostly work with emacs/vi and - prior to CMake - Makefiles. I'm still mostly working with emacs/vi, but I also do a fair amount of work with Visual Studio and CodeBlocks, primarily when I need to test client interactions with server

[CMake] CPACK_MONOLITHIC_INSTALL not handled at runtime?

2010-11-14 Thread Eric Noulard
Hi All, I'm working on CPackRPM for supporting componentized RPM: http://public.kitware.com/Bug/view.php?id=7645 (preliminary support has been pushed to next yesterday) then another CPack-component related bug appeared: http://public.kitware.com/Bug/view.php?id=11452 So I think that 1) May be

Re: [CMake] CPACK_MONOLITHIC_INSTALL not handled at runtime?

2010-11-14 Thread Eric Noulard
2010/11/14 Eric Noulard eric.noul...@gmail.com: Hi All, I'm working on CPackRPM for supporting componentized RPM: http://public.kitware.com/Bug/view.php?id=7645 (preliminary support has been pushed to next yesterday) then another CPack-component related bug appeared: http

Re: [CMake] CPACK_MONOLITHIC_INSTALL not handled at runtime?

2010-11-14 Thread Eric Noulard
2010/11/14 Vladislav Vaintroub vvaintr...@googlemail.com: [skip] 1) Shall we step back and may be setup a CMake policy for     enabling component installer?     If we go for a policy may be someone can help me with this     because I did never add a new policy mayself. Sounds like a good

Re: [CMake] CPACK_MONOLITHIC_INSTALL not handled at runtime?

2010-11-14 Thread Eric Noulard
2010/11/14 Vladislav Vaintroub vvaintr...@googlemail.com: Those vars may be set at CMake-time or at CPack-time. What do you think? Yes, sounds like a good idea, it allows the most flexibility.   Re. variables , I guess  CPACK_MONOLITHIC_INSTALL={ON|OFF} and

Re: [CMake] CPack general question and example

2010-11-15 Thread Eric Noulard
2010/11/15 David Doria daviddo...@gmail.com: I just heard about CPack and started playing with it. Which version of CMake/CPack are you using? I tried to make an RPM of a simple VTK program: http://www.cmake.org/Wiki/CMake/CPackExample When I run 'make package', I get an error: CPack

Re: [CMake] setting the COMPILE_FLAGS property causes VS to start compiling header files

2010-11-15 Thread Eric Noulard
2010/11/15 James Bigler jamesbig...@gmail.com If I set a COMPILE_FLAGS property on a header file via set_source_files_properties, CMake decides that these header files now need to be compiled (i.e. not treated as header files). Is this the intended behavior? I'm using both 2.8.1 and

Re: [CMake] CPack general question and example

2010-11-16 Thread Eric Noulard
2010/11/16 David Doria daviddo...@gmail.com: Great, it's working.  The only thing that was required was: SET(CPACK_DEBIAN_PACKAGE_MAINTAINER David Doria) Here is the working example: http://www.cmake.org/Wiki/CMake/CPack/Examples/Linux/DEB The page you sent

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread Eric Noulard
2010/11/16 Belcourt, K. Noel kbe...@sandia.gov: On Nov 16, 2010, at 2:05 PM, Belcourt, K. Noel wrote: On Nov 16, 2010, at 1:59 PM, Brad King wrote: On 11/16/2010 01:11 PM, K. Noel Belcourt wrote: I've attached my project's top-level Makefile.  I'm trying to force all the modules in the

Re: [CMake] Howto to work with variables from central makefiles....

2010-11-17 Thread Eric Noulard
2010/11/17 Thomas Lehmann t.lehm...@rtsgroup.net Hi all, for an automatically forced include I have provided an option like this: set(WIN32_SPEC ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/global/win32_spec.h) May you could use an absolute reference using

Re: [CMake] codesourcery integration

2010-11-17 Thread Eric Noulard
2010/11/17 Andrea Galeazzi galea...@korg.it: I'm facing the problem of using the cross compile toolchain of CodeSourcery. My host system in Windows and my target is ARM-Linux. I red this tutorial http://www.cmake.org/Wiki/CMake_Cross_Compiling and I tried to do something similar: # this one

Re: [CMake] Problems with parallel builds

2010-11-18 Thread Eric Noulard
2010/11/18 Denis Scherbakov denis_scherba...@yahoo.com: Dear All, I am using CMake 2.8.1 on Linux x86. I have a project that needs to be built two times. One with -fPIC, the other - without. The project depends on header files that need to be generated by an external script. When I build

Re: [CMake] Problems with parallel builds

2010-11-18 Thread Eric Noulard
2010/11/18 David Cole david.c...@kitware.com: On Thu, Nov 18, 2010 at 1:08 PM, Denis Scherbakov denis_scherba...@yahoo.com wrote: Here is a sample CMakeLists.txt to illustrate that two custom targets cannot depend on each other: PROJECT(BUG C) CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

Re: [CMake] Dependency not executed, why?

2010-11-18 Thread Eric Noulard
2010/11/19 Thomas Lehmann t.lehm...@rtsgroup.net Hi, I’ve found an example to use bison and flex in cmake. I have a static library where I want to add the generated sources but the dependencies are not triggered. Why? project(test) include_directories(.    

Re: [CMake] Dependency not executed, why?

2010-11-19 Thread Eric Noulard
2010/11/19 Thomas Lehmann t.lehm...@rtsgroup.net: - cmake 2.8.2 - the removing of the 'S' is not solving the problem. DEPENDS ${CMAKE_BINARY_DIR}/libs/test/parser.cxx OUTPUTS ${CMAKE_BINARY_DIR}/libs/test/parser.cxx those two lines are wrong too, I think you cannot not depend on your output.

Re: [CMake] cpack, deb file static libraries

2010-11-20 Thread Eric Noulard
2010/11/20 Paolo Zaffino p.zaff...@yahoo.it: Dear all, I builded a deb file using cpack. The package work fine but I have a question for you. During the compiling (run by cpack command) are generated some static libraries that will be included into the package. I don't want include the *.a

Re: [CMake] cpack, deb file static libraries

2010-11-20 Thread Eric Noulard
2010/11/20 Paolo Zaffino p.zaff...@yahoo.it: I try to explain better: When I compile my source code, for building the foo executable is needed the library bar.a Both the files are building during the compile process...into the deb package I want include foo but I don't want include bar.a

Re: [CMake] How to rerun cmake if a file changes

2010-11-23 Thread Eric Noulard
2010/11/23 Vladislav Vaintroub vvaintr...@googlemail.com: Hello, we use a text file as input for out build to store version info.  The content of this file is ./VERSION: MYSQL_VERSION_MAJOR=5 MYSQL_VERSION_MINOR=5 MYSQL_VERSION_PATCH=8 MYSQL_VERSION_EXTRA= During cmake run, the

Re: [CMake] howto re-run file(COPY signature ?

2010-11-24 Thread Eric Noulard
2010/11/24 Dominique Belhachemi domi...@cs.tu-berlin.de: The ${CMAKE_SOURCE_DIR}/copytree.cmake script simply looks like: FILE(COPY ${SRC} DESTINATION ${DST} PATTERN .svn EXCLUDE) Thanks, I will see if this works for me. Because FILE(COPY ...) copies files and directories only if they are

Re: [CMake] providing library information, what's the cmake way

2010-11-24 Thread Eric Noulard
2010/11/24 David Cole david.c...@kitware.com: On Wed, Nov 24, 2010 at 12:58 PM, Tyler Roscoe ty...@cryptio.net wrote: On Wed, Nov 24, 2010 at 11:41:46AM -0500, David Cole wrote: On Wed, Nov 24, 2010 at 11:34 AM, Rolf Eike Beer e...@sf-mail.de wrote: So I think it is _really_ necessary to go

Re: [CMake] providing library information, what's the cmake way

2010-11-25 Thread Eric Noulard
2010/11/25 Marcel Loose lo...@astron.nl: Everyone looks into his local CMake documentation and uses what he finds in there. And then it breaks on older versions. You currently have no chance to know what works but to install all older versions and do a binary search in the documentation.

Re: [CMake] providing library information, what's the cmake way

2010-11-26 Thread Eric Noulard
2010/11/25 Johannes Zarl johannes.z...@jku.at: On Wednesday 24 November 2010 19:03:21 David Cole wrote: On Wed, Nov 24, 2010 at 12:58 PM, Tyler Roscoe ty...@cryptio.net wrote: On Wed, Nov 24, 2010 at 11:41:46AM -0500, David Cole wrote: On Wed, Nov 24, 2010 at 11:34 AM, Rolf Eike Beer

Re: [CMake] How to get the current date

2010-11-26 Thread Eric Noulard
2010/11/26 ycollette.nos...@free.fr: Hello, Is it possible in a CMakeLists.txt file to get the current date (under linux and windows) ? I would like to store this date in a cmake variable so as to write it in a .h file. CMake has no builtin for that but if you search the ML archive

Re: [CMake] Forcing 'out-of-source' build

2010-11-26 Thread Eric Noulard
2010/11/26 Wylie, Brian bnwy...@sandia.gov: Hi All, I want to force an 'out-of-source' build for a small project that I converted to use Cmake. I did a bit of searching and found variants of the following... # Make sure the build is out of source STRING(COMPARE EQUAL ${CMAKE_SOURCE_DIR}

Re: [CMake] [cmake-developers] CMake bug tracker discussion

2010-12-09 Thread Eric Noulard
2010/12/9 David Cole david.c...@kitware.com: Hello CMake users and devs, (And now for something completely different...) Controversial questions: - Should we eliminate the bug tracker entirely and just do all discussion and patches on the mailing list? (Why have two sources of

Re: [CMake] CMake bug tracker discussion

2010-12-10 Thread Eric Noulard
2010/12/10 Bill Hoffman bill.hoff...@kitware.com: There are a few things we have already started to do that should help with the bug tracker issue. 1. We hare having 4 releases of CMake each year.   After each release we post to the list and ask people to vote for bugs they would like fixed

Re: [CMake] Trying to setup make folder configuration on linux

2010-12-11 Thread Eric Noulard
2010/12/11 Louis Hoefler louis.hoef...@gmx.de: Indeed, it works with INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/massmailer DESTINATION bin) This is not the appropriate way to install a target build with cmake (even if it works). Like Tyler said you should be doing something wrong in your

Re: [CMake] INSTALL when source file is already at DESTINATION?

2010-12-15 Thread Eric Noulard
2010/12/16 Gregory Peele ARA/CFD gpe...@ara.com: Hi all, What is the expected behavior is for INSTALL (TARGETS) when the source file for a particular destination is already at the relevant DESTINATION?  For example, this could happen with a  Unix Makefile generator for LIBRARY DESTINATION

Re: [CMake] How to detect whether CMake scripts are executing under / within CPack environment?

2010-12-18 Thread Eric Noulard
2010/12/16 Andreas Mohr a...@lisas.de: Hi, [subject formulated for best keyword search impact] forgive me for the possibly dumb question, but since cpack of course includes executing the make install step I'd like to know how to possibly detect this within CMake code. My build is capable

Re: [CMake] Sign a deb file builded by cpack

2011-01-02 Thread Eric Noulard
2011/1/2 Paolo Zaffino p.zaff...@yahoo.it: Dear all, first of all my best wishes at all for an happy new year. Do anyone know if there is a way to sign a deb package builded by cpack? Thank you very much. As far as I know there is built-in support for signing deb in CPackDeb. However using

Re: [CMake] Sign a deb file builded by cpack

2011-01-03 Thread Eric Noulard
2011/1/3 Paolo Zaffino p.zaff...@yahoo.it: Thank you Eric...I'll use dpkg-sig. Please let me know when the patch will be introduced. To be more clear: Adding this feature is not currently on my CMake TODO list. My previous remark was an invitation for YOU (or anyone else) to provide a patch.

Re: [CMake] Delivery target

2011-01-05 Thread Eric Noulard
2011/1/5 Michael Wild them...@gmail.com: On 01/05/2011 02:13 PM, Reinhard Thies wrote: On Wednesday 05 January 2011 12:32:52 David Cole wrote: You can't depend on package, but you can do this as your custom target's command:   cmake --build . --target package --config Release   scp ...

Re: [CMake] CPack tar ownership

2011-01-07 Thread Eric Noulard
2011/1/7 Tim St. Clair timoth...@gmail.com: Is there a way to make all entries in the tar package are owned by root, vs. build user. On which platform? Linux ? Debian? Fedora? Did you try using fakeroot ? -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » -

Re: [CMake] CPack tar ownership

2011-01-08 Thread Eric Noulard
2011/1/8 Tim St. Clair timoth...@gmail.com: This will be across several *nix platforms, I tried fakeroot but when I expand it has the euid of the user. This is odd, by the way which version of CMake are you using? On my ubuntu 10.04 box with CMake 2.8.3, I get: A) cpack -G TGZ leads to a

Re: [CMake] TARGET_LINK_LIBRARIES not working for MSVC

2011-01-08 Thread Eric Noulard
2011/1/8 Avanindra Singh avanindra.si...@gmail.com: Hi all, I have been trying to build a project under MSVC which I generated through CMAKE. The same projects compiles correctly  without any error in UBUNTU. But when I build the same project under msvc, I get so many linking errors. From

Re: [CMake] Fwd: TARGET_LINK_LIBRARIES not working for MSVC

2011-01-08 Thread Eric Noulard
2011/1/8 Avanindra Singh avanindra.si...@gmail.com: Hi Eric, Thanks for the reply. It was very useful. I incorporated the changes you mentioned. I removed all the link_libraries macros from the projects. Also I changed camke_minimum_version to 2.6 . I have CMake 2.8 in both windows as well as

Re: [CMake] module contribution?

2011-01-09 Thread Eric Noulard
2011/1/9 Nico Schlömer nico.schloe...@gmail.com: Quick question here: I have a couple of libraries here which all need NetCDF, so I was thinking the cleanest solution would be to write one FindNetCDF.cmake and use it everywhere. What's the policy of including modules into the official CMake

Re: [CMake] CPack and configure_file

2011-01-10 Thread Eric Noulard
2011/1/10 Tobias Ellinghaus h...@gmx.de: Hello, I create some files inside of CMAKE_CURRENT_BINARY_DIR using configure_file(). These are not installed but needed for compiling the program. When creating a .tgz file with make package_source these files are not included so that the

Re: [CMake] FIND_PROGRAM w/ CMake 2.8.2 and Cygwin

2011-01-10 Thread Eric Noulard
2011/1/10 marco atzeri marco.atz...@gmail.com: On Mon, Jan 10, 2011 at 3:43 PM, Emmanuel Blot  wrote: Hello All, [...] 1/ Is this a known issue / new regression?  I have not been subscribed to the ML for a while, and I can't find a decent way to search through the ML archives,

Re: [CMake] CPack and configure_file

2011-01-11 Thread Eric Noulard
2011/1/11 Tobias Ellinghaus h...@gmx.de: Am Montag, 10. Januar 2011 schrub Eric Noulard: which would at least allow to copy the files into CMAKE_CURRENT_SOURCE_DIR. You may generate those file (with configure_file) inside your source tree and the generated file will be packaged

Re: [CMake] CPack and configure_file

2011-01-11 Thread Eric Noulard
2011/1/11 Michael Hertling mhertl...@online.de: 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

Re: [CMake] CPack and configure_file

2011-01-11 Thread Eric Noulard
2011/1/11 Michael Hertling mhertl...@online.de: 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 generated CPackSourceConfig.cmake) I

Re: [CMake] CMake Java Support

2011-01-11 Thread Eric Noulard
2011/1/11 Andreas Schneider a...@redhat.com: 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:

Re: [CMake] Path to installed target

2011-01-12 Thread Eric Noulard
2011/1/12 Alexey Livshits livch...@web.de: 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

Re: [CMake] Path to installed target

2011-01-12 Thread Eric Noulard
2011/1/12 Alexey Livshits livch...@web.de: 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

Re: [CMake] CPack tar ownership

2011-01-12 Thread Eric Noulard
2011/1/12 Tim St. Clair timoth...@gmail.com: 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?

Re: [CMake] CPack and configure_file

2011-01-12 Thread Eric Noulard
2011/1/12 Tobias Ellinghaus h...@gmx.de: 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, EXTRA_DIST var http://www.gnu.org/software/hello

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

2011-01-13 Thread Eric Noulard
2011/1/13 ariasg...@gmx.de: 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:

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

2011-01-14 Thread Eric Noulard
2011/1/14 Thomas Petazzoni thomas.petazz...@free-electrons.com: On Mon, 10 Jan 2011 18:34:16 +0100 Thomas Petazzoni thomas.petazz...@free-electrons.com wrote: The FindQt4 module requires the uic executable to be present, otherwise it declares the Qt installation as invalid and bails out.

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

2011-01-14 Thread Eric Noulard
2011/1/14 Thomas Petazzoni thomas.petazz...@free-electrons.com: Hello, On Fri, 14 Jan 2011 11:06:04 +0100 Eric Noulard eric.noul...@gmail.com 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

Re: [CMake] add_custom_command problem

2011-01-17 Thread Eric Noulard
2011/1/17 Andrea Galeazzi galea...@korg.it: 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                                        

Re: [CMake] add_custom_command problem

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

Re: [CMake] add_custom_command problem

2011-01-17 Thread Eric Noulard
2011/1/17 Andrea Galeazzi galea...@korg.it: 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 definitely my choice. So

Re: [CMake] add_custom_command problem

2011-01-17 Thread Eric Noulard
2011/1/17 Andrea Galeazzi galea...@korg.it: Eric Noulard ha scritto: 2011/1/17 Andrea Galeazzi galea...@korg.it: 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

Re: [CMake] Properly Detecting Win64

2011-01-17 Thread Eric Noulard
2011/1/17 Michael Jackson mike.jack...@bluequartz.net: 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()        

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

2011-01-18 Thread Eric Noulard
2011/1/18 luxInteg lux-in...@btconnect.com: 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

[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 - «

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

2011-01-18 Thread Eric Noulard
2011/1/18 Olivier Pierard olivier.pier...@cenaero.be: 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

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

2011-01-18 Thread Eric Noulard
2011/1/18 Clifford Yapp cliffy...@gmail.com: 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

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

2011-01-18 Thread Eric Noulard
2011/1/18 luxInteg lux-in...@btconnect.com: 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 options are specific

Re: [CMake] check_function_exists frailty

2011-01-19 Thread Eric Noulard
2011/1/19 Jack Poulson jack.poul...@gmail.com: 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)

Re: [CMake] How to query compiler definitions?

2011-01-20 Thread Eric Noulard
2011/1/20 SF Markus Elfring elfr...@users.sourceforge.net: 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

Re: [CMake] How to query compiler definitions?

2011-01-20 Thread Eric Noulard
2011/1/20 Rolf Eike Beer e...@sf-mail.de: 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  

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