Re: [CMake] CMake/Buildbot xplat upload?

2010-10-01 Thread Eric Noulard
2010/10/1 : > > 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 server > (Ubu

Re: [CMake] rpmbuild breaks if HOME is wrong

2010-10-04 Thread Eric Noulard
2010/10/4 : > > 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 the case then m

Re: [CMake] rpmbuild breaks if HOME is wrong

2010-10-04 Thread Eric Noulard
2010/10/4 : > > On Mon, 4 Oct 2010 18:19:20 +0200 > Eric Noulard 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 it

Re: [CMake] rpmbuild breaks if HOME is wrong

2010-10-05 Thread Eric Noulard
2010/10/5 : > > On Mon, 4 Oct 2010 20:45:21 +0200 > Eric Noulard 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 : > 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 couple of CMake

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

2010-10-12 Thread Eric Noulard
2010/10/12 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 http://www.cmake.org/Wiki/CMake_FAQ#Out-of-source_build_trees and avoid t

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

2010-10-12 Thread Eric Noulard
2010/10/12 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 sho

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

2010-10-12 Thread Eric Noulard
2010/10/12 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( ...) commands >> >

Re: [CMake] CPACK "deb" package Problem

2010-10-14 Thread Eric Noulard
Hi Chang, 2010/10/14 Chang Yu Huang : > 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 package" comman

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

2010-10-14 Thread Eric Noulard
2010/10/14 Karl Krissian : >  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 > <                 COMMAND

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

2010-10-15 Thread Eric Noulard
2010/10/15 Karl Krissian : > > 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 by www.kitware.com

Re: [CMake] Bootstrap script generation?

2010-10-15 Thread Eric Noulard
2010/10/15 Clifford Yapp : > 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 autoconf ? Just kidding

Re: [CMake] Complete rebuild after svn update

2010-10-18 Thread Eric Noulard
2010/10/18 Alex Brooks : > 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 something like an hour to

Re: [CMake] How to choose different complier?

2010-10-18 Thread Eric Noulard
2010/10/18 董隆超 : > 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 time.I know th

Re: [CMake] Cmake Releases

2010-10-20 Thread Eric Noulard
2010/10/20 Mohammed Aziz Parande : > 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 you please

[CMake] Creating Debian source packages with CMake

2010-10-20 Thread Eric Noulard
Retransmit on the ML. -- Forwarded message -- From: Eric Noulard Date: 2010/10/20 Subject: Re: [CMake] Creating Debian source packages with CMake To: Daniel Pfeifer 2010/10/20 Daniel Pfeifer : > Hi, > > CPack, the packaging system that ships with CMake, builds &g

Re: [CMake] Creating Debian source packages with CMake

2010-10-21 Thread Eric Noulard
2010/10/20 Daniel Pfeifer : >> 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. CPack (2.8.3rcXX) **

Re: [CMake] CMake with CPack - unresolved libraries

2010-10-25 Thread Eric Noulard
2010/10/25 Marcin Czenko : > 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 executable. T

Re: [CMake] cmake policy setting

2010-10-29 Thread Eric Noulard
2010/10/29 Marco Atzeri : > 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 > 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 > -  /projects/

Re: [CMake] How to differ?

2010-10-29 Thread Eric Noulard
2010/10/29 Thomas Lehmann : > 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 >> projects/apps//CMakeLists.txt which conta

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

2010-11-02 Thread Eric Noulard
2010/11/2 Szilárd Páll : > 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 > CMAKE_BUILD_WITH

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

2010-11-03 Thread Eric Noulard
2010/10/30 David Cole : > 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 > failing (HTML doc

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

2010-11-03 Thread Eric Noulard
2010/11/3 Bill Hoffman : > > 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}) > > > The sha1.h i

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

2010-11-03 Thread Eric Noulard
2010/11/3 David Cole : >> >> 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 even more rarely VS

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

2010-11-04 Thread Eric Noulard
2010/11/4 Bill Hoffman : 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 tha

Re: [CMake] CMake 2.8.3 available for download

2010-11-04 Thread Eric Noulard
2010/11/4 Micha Renner : > 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 me. Don't you have

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

2010-11-04 Thread Eric Noulard
2010/11/4 David Cole : > 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 move specific discu

Re: [CMake] header files with visual studio

2010-11-06 Thread Eric Noulard
2010/11/6 Pedro d'Aquino : > On Friday, November 5, 2010, Oliver kfsone Smith >> >> 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 you need to use a depe

Re: [CMake] help with learning add_library

2010-11-06 Thread Eric Noulard
2010/11/7 luxInteg : > 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 COMPILE_DEFINITIONS ${v

Re: [CMake] cmake gfortran-libs linking x86_64

2010-11-07 Thread Eric Noulard
2010/11/7 luxInteg : > 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 12:19 /usr/lib/l

Re: [CMake] help with learning add_library

2010-11-08 Thread Eric Noulard
2010/11/8 luxInteg : > 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 so

Re: [CMake] help with learning add_library

2010-11-08 Thread Eric Noulard
2010/11/8 luxInteg : >> >> 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 http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:list

Re: [CMake] header files with visual studio

2010-11-11 Thread Eric Noulard
2010/11/10 Oliver kfsone Smith : > 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 usua

Re: [CMake] header files with visual studio

2010-11-14 Thread Eric Noulard
2010/11/13 Oliver kfsone Smith : > 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 processes. > > Manually

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

Re: [CMake] CPACK_MONOLITHIC_INSTALL not handled at runtime?

2010-11-14 Thread Eric Noulard
2010/11/14 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: >

Re: [CMake] CPACK_MONOLITHIC_INSTALL not handled at runtime?

2010-11-14 Thread Eric Noulard
2010/11/14 Vladislav Vaintroub : > > [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 idea. On the ot

Re: [CMake] CPACK_MONOLITHIC_INSTALL not handled at runtime?

2010-11-14 Thread Eric Noulard
2010/11/14 Vladislav Vaintroub : >> 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 > CPACK__MONOLITHIC_INSTALL ={ON|OFF} would alrea

Re: [CMake] CPack general question and example

2010-11-15 Thread Eric Noulard
2010/11/15 David Doria : > 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 Error: Problem c

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 > > 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 2.8.3 on Windows w

Re: [CMake] CPack general question and example

2010-11-16 Thread Eric Noulard
2010/11/16 David Doria : > 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 > (http://www.vtk.org/Wiki/CMake:CPackPacka

Re: [CMake] Fortran 90 modules not rebuilt

2010-11-16 Thread Eric Noulard
2010/11/16 Belcourt, K. Noel : > > 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 th

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

2010-11-17 Thread Eric Noulard
2010/11/17 Thomas Lehmann > > 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 ${PROJECT_SOURCE_DIR}/libs/global/win32_spec

Re: [CMake] codesourcery integration

2010-11-17 Thread Eric Noulard
2010/11/17 Andrea Galeazzi : > 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 is important

Re: [CMake] Problems with parallel builds

2010-11-18 Thread Eric Noulard
2010/11/18 Denis Scherbakov : > 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 this project with se

Re: [CMake] Problems with parallel builds

2010-11-18 Thread Eric Noulard
2010/11/18 David Cole : > On Thu, Nov 18, 2010 at 1:08 PM, Denis Scherbakov > 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) >> >> ADD_CUSTOM_COMMAND( >>  OUTPUT  "${CMA

Re: [CMake] Dependency not executed, why?

2010-11-18 Thread Eric Noulard
2010/11/19 Thomas Lehmann > > 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(. > >     ${CMAKE

Re: [CMake] Dependency not executed, why?

2010-11-19 Thread Eric Noulard
2010/11/19 Thomas Lehmann : > - 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. -- Erk Membre de l'A

Re: [CMake] cpack, deb file & static libraries

2010-11-20 Thread Eric Noulard
2010/11/20 Paolo Zaffino : > 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 files...do you

Re: [CMake] cpack, deb file & static libraries

2010-11-20 Thread Eric Noulard
2010/11/20 Paolo Zaffino : > 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 Building and pack

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

2010-11-23 Thread Eric Noulard
2010/11/23 Vladislav Vaintroub : > 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 information is extracte

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

2010-11-24 Thread Eric Noulard
2010/11/24 Dominique Belhachemi : >> 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 new > Does it

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

2010-11-24 Thread Eric Noulard
2010/11/24 David Cole : > On Wed, Nov 24, 2010 at 12:58 PM, Tyler Roscoe 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 wrote: >>> > So I think it is _really_ necessary to go through all the CMake >>> > documentation item

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

2010-11-25 Thread Eric Noulard
2010/11/25 Marcel Loose : >> >> 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. That s

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

2010-11-26 Thread Eric Noulard
2010/11/25 Johannes Zarl : > On Wednesday 24 November 2010 19:03:21 David Cole wrote: >> On Wed, Nov 24, 2010 at 12:58 PM, Tyler Roscoe 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 wrote: >> >> > So I think it is _r

Re: [CMake] How to get the current date

2010-11-26 Thread Eric Noulard
2010/11/26 : > 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 http://www.cmake.org/Wik

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

2010-11-26 Thread Eric Noulard
2010/11/26 Wylie, Brian : > 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}" "${CMAKE

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

2010-12-09 Thread Eric Noulard
2010/12/9 David Cole : > 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 > information...?) > > - Or

Re: [CMake] CMake bug tracker discussion

2010-12-10 Thread Eric Noulard
2010/12/10 Bill Hoffman : > 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 in > the next relea

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

2010-12-11 Thread Eric Noulard
2010/12/11 Louis Hoefler : > 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 CMakeLists.txt. > > PS

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

2010-12-15 Thread Eric Noulard
2010/12/16 Gregory Peele ARA/CFD : > 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 lib" when

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 : > 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 of la

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

2011-01-02 Thread Eric Noulard
2011/1/2 Paolo Zaffino : > 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 dpkg-sig : http:/

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

2011-01-03 Thread Eric Noulard
2011/1/3 Paolo Zaffino : > 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. Then I'll be able

Re: [CMake] Delivery target

2011-01-05 Thread Eric Noulard
2011/1/5 Michael Wild : > 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 : > 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 » - http://www.april.org __

Re: [CMake] CPack tar ownership

2011-01-08 Thread Eric Noulard
2011/1/8 Tim St. Clair : > 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 tar+gz archive whose

Re: [CMake] TARGET_LINK_LIBRARIES not working for MSVC

2011-01-08 Thread Eric Noulard
2011/1/8 Avanindra Singh : > 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 > the project configurat

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

2011-01-08 Thread Eric Noulard
> Hi john, > > Thanks for the reply.Multiple TARGET_LINK_LIBRARIES >  did not give any configuration error. Though I removed the WIN32 If > block, but I am still getting the same linking errors. > TARGET_LINK_LIBRARIES(hybridnccsurfacecoloring bundler imagelib matrix mathlib >                     

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

2011-01-08 Thread Eric Noulard
2011/1/8 Avanindra Singh : > 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 Linux. Though > I am

Re: [CMake] module contribution?

2011-01-09 Thread Eric Noulard
2011/1/9 Nico Schlömer : > 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 branch? http://www

Re: [CMake] CPack and configure_file

2011-01-10 Thread Eric Noulard
2011/1/10 Tobias Ellinghaus : > 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 package_source wil

Re: [CMake] cmake and buildvariants

2011-01-10 Thread Eric Noulard
2011/1/10 John Beuving : > > I have the following software setup where I need to have build variants > providing different builds for the same (sub)project > > -    worker ( calls the Qt Processevents function if Qt is enabled for this > project (#define  USE_WORKER_QT) > -    gui app (uses Qt) > -

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

2011-01-10 Thread Eric Noulard
2011/1/10 marco atzeri : > 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, >> http://www.cmake.org/pi

Re: [CMake] CPack and configure_file

2011-01-11 Thread Eric Noulard
2011/1/11 Tobias Ellinghaus : > 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 >>

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

  1   2   3   4   5   6   7   8   9   10   >