Re: [CMake] SET_SOURCE_FILES_PROPERTIES different properties for same file, same library

2010-05-12 Thread Eric Noulard
2010/5/12 Michael Wild : > > On 12. May, 2010, at 13:03 , Bryn Lloyd wrote: > >> Hi, >> >> I would like to cmakeify the UMFPACK/AMD libraries by Timothy Davis. >> >> I need to compile the same source file, multiple times, with different >> flags/defines in order to link the resulting object files

Re: [CMake] How does CPACK decide what goes into release packages?

2010-05-17 Thread Eric Noulard
2010/5/17 Tyler Roscoe : > On Mon, May 17, 2010 at 12:53:34PM -0500, kent williams wrote: >> "Internally, CPack will use CMake's install mechanism to automatically >> populate the package." > > Right. Mostly, all that CPack does is call "make install" on your > project with a special CMAKE_INSTALL_

Re: [CMake] cmake ld fails

2010-05-19 Thread Eric Noulard
2010/5/18 R. Bryn Fenwick : > Hi, > > I have received some code that works on one system, but is failing to work > for me. Any suggestions how to debug this would be greatly appreciated. > > I think that I am setting everything up correctly however it appears to need > some hacks. [...] > ../libs

Re: [CMake] newbie question - what targets are supported?

2010-05-27 Thread Eric Noulard
2010/5/28 Michael Hertling : > On 05/28/2010 12:14 AM, Doug Reiland wrote: >> okay, I have ordered the book. But, in the meantime. >> >> I am continuing to port a large library from in-house build to cmake >> for evaluation. >> What builtin targets are supported? > > On *nix, run CMake on a directo

Re: [CMake] Generator for NetBeans 6.9

2010-05-31 Thread Eric Noulard
2010/5/31 Sebastian Meier : > Update. > > My allocated time slot for looking into a NetBeans generator has finished. My > impression is that patching CMake to suit our company's needs would be fairly > easy. I have actually gotten quite far with that. > > But OTOH this easy way would be merely a

Re: [CMake] Generator for NetBeans 6.9

2010-05-31 Thread Eric Noulard
2010/5/31 Sebastian Meier : > Hi Bill, > >> Can NetBeans be driven from the command line?  That is a requirement for >> getting try_compile to work. > > No, I don't think it is possible call NetBeans via command line in order to > build targets. But since NetBeans relies on external tool chains li

Re: [CMake] Project initialization file path

2010-06-10 Thread Eric Noulard
2010/6/9 Aby Louw : > Hi, > > I have a Linux project that reads an initialization file on startup to > get some file names and variables. > > When doing an in-source or out of source build, I generate the > initialization file in the CMAKE_BINARY_DIR and then also generate the C > file that reads t

Re: [CMake] CPack NSIS translation

2010-06-10 Thread Eric Noulard
2010/6/9 Vincent LEFORT : > Hello, i want to use CPack to generate my installer instead of NSIS > directly. > Is it possible to have translation of my installer using CPack/CMake ? Automatic translation I don't think there exists some tools for that. However CPack NSIS generator is using a templat

Re: [CMake] change where package is generated; full name of package with extension

2010-06-18 Thread Eric Noulard
2010/6/18 Tyler Roscoe : > 1. I want to change where "make package" deposits the packages it > creates.  Is there a way to do this -- some cpack variable I haven't > found? No variable I am aware of. However you may create a custom target which call make package and then move the file, provided yo

Re: [CMake] change where package is generated; full name of package with extension

2010-06-18 Thread Eric Noulard
2010/6/18 Tyler Roscoe : > On Fri, Jun 18, 2010 at 06:30:25PM +0200, Eric Noulard wrote: >> 2010/6/18 Tyler Roscoe : >> > 1. I want to change where "make package" deposits the packages it >> > creates.  Is there a way to do this -- some cpack variable I haven

Re: [CMake] Non-build output

2010-06-20 Thread Eric Noulard
2010/6/20 Clark Gaebel : > How would I go about placing a text file in the same directory as a > target's output? > > For example, let's say I have a target called "foo", which creates an > executable. "foo" has a config file called "foo.conf" that should always > go in the same directory. At the m

Re: [CMake] Link order of object files

2010-06-22 Thread Eric Noulard
2010/6/22 Mathias Lafeldt : > Alexander Neundorf wrote: >> On Monday 21 June 2010, Mathias Lafeldt wrote: >>> Hi, >>> >>> is there a way to tell CMake in which order to link in object files? >>> >>> For example, I got the following executable: >>> >>>      ADD_EXECUTABLE(hello crt0.o hello.c) >>> >

Re: [CMake] Searching the mailing list archives

2010-06-22 Thread Eric Noulard
2010/6/22 Bo Thorsen : > > The site: tells google to only consider URLs that contain this. I also use > this to search for something in another country - site:co.uk if I want > something in Great Brittain. (Yes, I know some there also has other domains, > but for some searches that's not a problem)

Re: [CMake] CPack (RPM) and install()

2010-06-23 Thread Eric Noulard
2010/6/23 Magnus Therning : > The documentation for install() is clear, an absolute path (e.g. > '/usr/lib') is used directly and relative path (e.g. 'lib') is > prefixed by CMAKE_INSTALL_PREFIX.  Another thing to note is that 'make > DESTDIR=foo install' *always* works as expected! > > However, th

Re: [CMake] CPack (RPM) and install()

2010-06-23 Thread Eric Noulard
2010/6/23 Magnus Therning : > On Wed, Jun 23, 2010 at 15:41, Eric Noulard wrote: >> 2010/6/23 Magnus Therning : > [...] >>> - The variable CMAKE_INSTALL_PREFIX is not used at all during RPM >>> building.  CMAKE_INSTALL_PREFIX is /usr/local, but files get put into &

Re: [CMake] customize cpack windows installer

2010-06-25 Thread Eric Noulard
2010/6/25 Bo Thorsen : > Den 23-06-2010 23:39, Alexandre Gramfort skrev: >> >> I'm deploying a cmake project on windows and I have a few questions >> concerning the >> installer generated by cpack using NSIS >> >> - is it possible to remove the mention "create desktop icon" since the >> installer c

Re: [CMake] An observation about CTest

2010-06-27 Thread Eric Noulard
2010/6/27 Convey, Christian J CIV NUWC NWPT : > I don't expect a lot of support for what I'm about to say, but I think it's > perhaps worth saying anyway... > > It seems like CMake's and CTest's have outgrown their scripting languages. > > As far as I can tell, all CMake/CTest variables are either

Re: [CMake] Preserve tree structur for IDEs

2010-07-01 Thread Eric Noulard
2010/7/1 Diablo 666 : > Hi, > > I need CMake to create a Visual Studio solution for a project with several > subdirectories but only one single library. > How can I achieve project files that preserve this tree structure? For "grouping" source in Visual Studio you may use source_group(name [REGUL

Re: [CMake] CPack (RPM) and install()

2010-07-04 Thread Eric Noulard
2010/6/23 David Cole : > Well known issue for quite some time now. > See the quite extensive notes in this bug: > http://public.kitware.com/Bug/view.php?id=7000 > You can set CPACK_SET_DESTDIR to ON in your CMakeLists.txt file to get this > to work with the RPM CPack generator. > It would be fabulo

Re: [CMake] BUG report: FindCygwin.cmake

2010-07-08 Thread Eric Noulard
2010/7/8 Aeschbacher, Fabrice : > Hi, > > FindCygwin.cmake try to find Cygwin installation as follows: > >  FIND_PATH(CYGWIN_INSTALL_PATH >    cygwin.bat >    "C:/Cygwin" >    "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Cygnus Solutions\\Cygwin\\mounts > v2\\/;native]" >  ) > > > Unfortunately, recent version

Re: [CMake] FILE command working

2010-07-09 Thread Eric Noulard
2010/7/9 Johny : > On 07/09/2010 11:31 AM, Michael Wild wrote: >> >> On 9. Jul, 2010, at 11:24 , Johny wrote: >> >> >>> >>> Hi, >>> >>> I was working with the FILE(STRINGS filename lineList) and i discovered >>> that i end up getting a list which has a lesser number of strings than the >>> actual l

Re: [CMake] CTest examples

2010-07-09 Thread Eric Noulard
2010/7/9 Bo Thorsen : > Hi people, > > I have converted a set of applications to cmake and cpack, and now have my > eyes set on ctest. > > I'd like to hear if someone here has some good advice, or links to good > advice, on how to structure tests. I'm searching for help on how to put > different te

Re: [CMake] CMakeCache Files

2010-07-14 Thread Eric Noulard
2010/7/14 Benjamin Eikel : > Hello Mike, > > Am Mittwoch, 14. Juli 2010, 17:33:57 schrieb michael.schm...@l-3com.com: >> I'm a newbie with cmake, and I wanted to clarify a couple things.  From >> what I understand, there's no command to clear CMakeCache files.  If I > the program cmake-gui has a me

Re: [CMake] cmake 2.8.2 win32: invalid escape sequence when finding fortran compiler

2010-07-14 Thread Eric Noulard
2010/7/14 John Drescher : > On Wed, Jul 14, 2010 at 11:15 AM, Verweij, Arjen > wrote: >> Hi, >> >>> >>>You seem to have a path using \ instead of / >>> >> >> Isn't that to be expected of a PATH setting on a Windows computer? >> Anyway, the path to the Visual Studio compiler is of the same format

Re: [CMake] Finding Python3

2010-07-18 Thread Eric Noulard
2010/7/18 Alan W. Irwin : [...] > # Get the Python version. >  execute_process( >    COMMAND >    ${PYTHON_EXECUTABLE} -c "import sys; print sys.version.split()[0]" >    OUTPUT_VARIABLE PYTHON_version_output >    OUTPUT_STRIP_TRAILING_WHITESPACE >    ) >  SET(PYTHON_VERSION ${PYTHON_version_output

Re: [CMake] Library Paths

2010-07-19 Thread Eric Noulard
2010/7/19 : > When I do an in-source build, everything runs ok.  However, I have > issues with an out-of-source build.  One of my libraries uses another > one of my libraries.  When I run the executable it complains "cannot > open shared object file: No such file or directory." linking your execu

Re: [CMake] How to skip checking compiler detection??

2010-07-21 Thread Eric Noulard
2010/7/21 sheissj : > Hello. > > I want to generate a simple Makefile from cmake. > This Makefile looks like this: > > all: >     @echo "No build" > > tags: >     ctags -R *.cpp >     cscope -b -q -k *.cpp > > > This simple Makefile do not have target to build source code. It is only for > building

Re: [CMake] Bug? project(X T) returns weird error

2010-07-21 Thread Eric Noulard
2010/7/21 Olaf van der Spek : > Hi, > > I forgot to use quotes, but cmake doesn't make that obvious. > Shouldn't it return a better error message? > > $ cat CMakeLists.txt > project(X T) If you read the documentation from the "project" command you read: project( [languageName1 languageName2 ... ]

Re: [CMake] CPack DEB: default to standard Debian package file names

2010-07-21 Thread Eric Noulard
2010/7/21 Olaf van der Spek : > On Wed, Jul 21, 2010 at 5:39 PM, Droscy wrote: >> Hi Olaf, >> >> Olaf van der Spek ha scritto: >>> Could this be changed to "xbt-tracker_0.1.1_i386.deb"? >>> >> I'm using the following code to obtain a correct debian-name > > Looks good, but this should really be pa

Re: [CMake] CPack: Detecting if to build DEB/RPM packages

2010-07-22 Thread Eric Noulard
2010/7/22 Freddie Witherden : > Hi, > > I use CPack in my project to build binary packages as an alternative to `make > install`.  However, I am interested in getting my project to automatically > detect which packages to build. > > Currently I have TGZ set and then require the user to pass the app

[CMake] Fwd: CPack: Detecting if to build DEB/RPM packages

2010-07-22 Thread Eric Noulard
Forgot the list -- Forwarded message -- From: Eric Noulard Date: 2010/7/22 Subject: Re: [CMake] CPack: Detecting if to build DEB/RPM packages To: norulez 2010/7/22 norulez : > This shouldn't work, because you could build deb packages on redhat systems > with cp

Re: [CMake] Bug? project(X T) returns weird error

2010-07-22 Thread Eric Noulard
2010/7/21 Brian Davis : > I agree with Olaf.  CMake needs better error reporting for parameter > checking on macros and functions Good idea but this seems difficult to do. In Olaf case it may be doable to spit out a better error message explicitely saying that "T" was considered as the "" argument

Re: [CMake] CPack DEB: default to standard Debian package file names

2010-07-22 Thread Eric Noulard
2010/7/22 Olaf van der Spek : > On Wed, Jul 21, 2010 at 7:40 PM, Eric Noulard wrote: >> http://public.kitware.com/Bug/view.php?id=9900 > > What's stopping this bug from being fixed? >From my point of view: lack of time :-) However for my next CMake developping sessio

Re: [CMake] CPack DEB: default to standard Debian package file names

2010-07-22 Thread Eric Noulard
2010/7/22 Olaf van der Spek : > On Thu, Jul 22, 2010 at 10:56 AM, Eric Noulard wrote: >> 2010/7/22 Olaf van der Spek : >>> On Wed, Jul 21, 2010 at 7:40 PM, Eric Noulard >>> wrote: >>>> http://public.kitware.com/Bug/view.php?id=9900 >>> >>&

Re: [CMake] CPack DEB: default to standard Debian package file names

2010-07-22 Thread Eric Noulard
2010/7/22 Olaf van der Spek : > On Thu, Jul 22, 2010 at 11:33 AM, Eric Noulard wrote: >> Note that you can search the bug tracker using filter for CPack or DEB etc... > > I can set Category = CPack, but where can I set DEB? There is no "DEB" (nor TGZ, NSIS etc...) Cate

Re: [CMake] CPack: Detecting if to build DEB/RPM packages

2010-07-22 Thread Eric Noulard
2010/7/22 Olaf van der Spek : > On Thu, Jul 22, 2010 at 4:08 PM, Freddie Witherden > wrote: >> I'll try adding a check for `rpmbuild` to my CMakeLists before enabling RPM >> packages.  This seems quite a nice solution as users should always get TGZ >> and DEB and RPM if possible.  From what I ga

Re: [CMake] CPack: Detecting if to build DEB/RPM packages

2010-07-22 Thread Eric Noulard
2010/7/22 Olaf van der Spek : > On Thu, Jul 22, 2010 at 11:08 PM, Eric Noulard wrote: >> Yes it should, if ever the proposed patch >> http://public.kitware.com/Bug/view.php?id=10292 >> is merged as-is. > > What's the delay? I do not have an authoritative answer,

Re: [CMake] CPack: Detecting if to build DEB/RPM packages

2010-07-25 Thread Eric Noulard
2010/7/25 Alexander Neundorf : > On Thursday 22 July 2010, Eric Noulard wrote: >> 2010/7/22 Olaf van der Spek : >> > On Thu, Jul 22, 2010 at 11:08 PM, Eric Noulard > wrote: >> >> Yes it should, if ever the proposed patch >> >> http://public.kitware.co

Re: [CMake] CPack: Detecting if to build DEB/RPM packages

2010-07-25 Thread Eric Noulard
2010/7/25 Olaf van der Spek : > On Sun, Jul 25, 2010 at 7:13 PM, Eric Noulard wrote: >> Switching cmake-devel in order to go on with this discussion >> on CPackDeb related patches? > > I don't see cmake-devel at http://www.cmake.org/cmake/help/mailing.html > How

Re: [CMake] Problem with current CVS HEAD for creating ZIP with shared lib on Linux

2010-07-26 Thread Eric Noulard
2010/1/19 Eric Noulard : > 2010/1/19 Bill Hoffman : >>> >> You should file a bug.  This most likely is because we switched to >> libarchive for creation of the tar and zip files. > > Done: > http://public.kitware.com/Bug/view.php?id=10162 Small update, I have jus

Re: [CMake] Debug/Release configurations for codeblocks ?

2010-07-26 Thread Eric Noulard
2010/7/26 Olaf van der Spek : > On Mon, Jul 26, 2010 at 7:23 PM, Michael Wild wrote: >> OK, it's like this: CMake has various "backends" which generate the native >> build tool. For MSVC, GNU Make, nmake, Xcode etc. Now, some of these >> backends are "multi-config", such as the ones for MSVC and

Re: [CMake] Debug/Release configurations for codeblocks ?

2010-07-26 Thread Eric Noulard
2010/7/26 Olaf van der Spek : > On Mon, Jul 26, 2010 at 8:32 PM, Eric Noulard wrote: >>> Thanks a lot. >>> So the Code Blocks gen isn't native? Just uses a makefile for the >>> build system. That explains it. >> >> It depends on what you mean by &q

Re: [CMake] [VS gen] Multiple configurations code

2010-07-26 Thread Eric Noulard
2010/7/26 Olaf van der Spek : > On Mon, Jul 26, 2010 at 10:12 PM, David Cole wrote: >>> Is there a problem with multiple configures / build trees? >> >> No, not at all. We do this all the time. But again, I thought from your >> questions that you were trying to do it all in one build tree. > > I'm

[CMake] bash completion for cmake

2010-07-26 Thread Eric Noulard
Here comes a proposal for a bash completion for cmake. Should work with almost any cmake version because it's using cmake command to retrieve completion. Prerequisite: You should have "bash-completion" package installed. If you want to try you may either: 1) add the attache "cmake" file to /etc

Re: [CMake] bash completion for cmake

2010-07-27 Thread Eric Noulard
2010/7/27 Eric Noulard : > Here comes a proposal for a bash completion for cmake. Should work with almost > any cmake version because it's using cmake command to retrieve completion. > > Prerequisite: You should have "bash-completion" package installed. > > I

Re: [CMake] bash completion for cmake

2010-07-28 Thread Eric Noulard
2010/7/28 Kishore : > On Tuesday 27 Jul 2010 6:05:59 pm Eric Noulard wrote: >> 2010/7/27 Eric Noulard : >> > Here comes a proposal for a bash completion for cmake. Should work with >> > almost any cmake version because it's using cmake command to retrieve >>

Re: [CMake] bash completion for cmake

2010-07-28 Thread Eric Noulard
2010/7/28 Kishore : >> >> bash-completion       1:1.2-2 > > bash-completion 1:1.1-3ubuntu2 I think I know why. The missing functions may comes with bash-completion 1.2 you have 1.1. Would you try the attach file it should work with 1.1 (and 1.2) -- Erk Membre de l'April - « promouvoir et défen

Re: [CMake] CPackDeb generator patch

2010-07-28 Thread Eric Noulard
2010/2/13 Thawan Kooburat : > Hi, > > I created a patch for CPack Debian generator. Here is the list of my > modification > > -  Automatically generate dependency list if dpkg-shlibdeps utility is > presented. >       1. Detect if dpkg-shlibdeps is existed in the system >       2. Use "find" and "f

Re: [CMake] Does the echo command use the system shell?

2010-07-28 Thread Eric Noulard
2010/7/28 Óscar Fuentes : > For creating a file at build time with a content like this: > > #define foo "bar" > > I use this on Linux: > > add_custom_command(OUTPUT buildobj.h >  COMMAND ${CMAKE_COMMAND} -E echo "\\#define foo \\\"bar\\\"" >  > buildobj.h >  ) > > but that doesn't work on Windows,

Re: [CMake] Does the echo command use the system shell?

2010-07-28 Thread Eric Noulard
2010/7/28 Óscar Fuentes : > Eric Noulard > writes: > > [snip] > >> if you need build >> time creation of the file then you may write a CMake script >> "generateMyFile.cmake" which contains such commands and use >> >> add_custom_command( ..

Re: [CMake] library name from subdirectory and setting the CACHE - a "listening" variable?

2010-07-28 Thread Eric Noulard
2010/7/28 Clifford Yapp : > Ironically, I now see this issue (almost exactly) was discussed long ago: > > http://www.cmake.org/pipermail/cmake/2005-September/007204.html > > However, when I try: > > get_directory_property(PNG_LIB_NAME DIRECTORY src/other/libpng > DEFINITION PNG_LIB_NAME) > MESSAGE(

Re: [CMake] Does the echo command use the system shell?

2010-07-29 Thread Eric Noulard
2010/7/29 Óscar Fuentes : > Eric Noulard > writes: > >> I think you are wrong. >> >> May be you can try the attach script. >> >> try: >> cmake -DYOURSTRING="I like # \ it" -DTHE_FILE=toto.txt -P writeany.cmake >> >> You shouldn&

Re: [CMake] library name from subdirectory and setting the CACHE - a "listening" variable?

2010-07-29 Thread Eric Noulard
2010/7/29 Clifford Yapp : > Got it - was using a VTK macro for third_party inclusion that was > using SUBDIRS - switching it to ADD_DIRECTORY got me going.  Awesome! SUBDIRS is deprecated but it's good to know that it's behavior is not strictly equivalent to ADD_DIRECTORY in some case. -- Erk M

Re: [CMake] Linker problems with compiling static QT lib with cmake

2010-07-29 Thread Eric Noulard
2010/7/29 bal...@t-online.de : > > Hello, > > I am trying to compile a simple QT HelloWorld.cxx with cmake. I have a > statically compiled qt installed as well as a non static version. > What I want is a statically compiled HelloWorld. Cmake allows me to choose my > static build of QT (using cmak

Re: [CMake] Linker problems with compiling static QT lib with cmake

2010-07-29 Thread Eric Noulard
Please do not forget to CC the list. 2010/7/29 bal...@t-online.de : >> Shouldn't you use: >> >>TARGET_LINK_LIBRARIES(HelloWorld ${QT_QTGUI_LIBRARY}) > > Well, if I am _not_ linking statically it works with > target_link_libraries(HelloWorld QtGui QtCore) without a problem. > CMake then seems to l

Re: [CMake] controlling linker

2010-07-29 Thread Eric Noulard
2010/7/29 j s : > I'm linking C++ static libraries against a c main.  On linux, cmake 2.6 > tries to use gcc for the final link. cmake 2.8.1 uses g++ for the final > link.  How do I tell cmake 2.6 to use a c++ linker? May be setting the LINKER_LANGUAGE property on the target? see http://www.cmake

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

2010-07-29 Thread Eric Noulard
2010/7/5 David Cole : > Hi all, > Now that we have released CMake 2.8.2 last Monday, and we have switched to > this new workflow using branches in the git repository, *now* would be a > great time to prioritize bug fixes for the next release of CMake. > We are leaning towards quarterly releases fro

[CMake] Support for multiple components in cpack

2010-07-30 Thread Eric Noulard
Hi All, I'll try to launch a specific thread for this following what Kishore said: > I would like to see full support for multiple components in cpack. David answered: > Could you elaborate on "full support for multiple components in cpack" either > in another thread, > or in a feature request b

Re: [CMake] CPack integration

2010-08-01 Thread Eric Noulard
2010/8/1 Dennis Schridde : > Hello! > > I just started experimenting with CPack. According to the docs and > code it is to be used like this: >> set(CPACK_... ...) >> > include(CPack) > > This, however, does not allow making use of the defaults > present in CPack.cmake. (Most notably CPACK_SOURCE_I

Re: [CMake] CPack integration

2010-08-02 Thread Eric Noulard
2010/8/2 David Cole : > On Sun, Aug 1, 2010 at 6:17 PM, Eric Noulard wrote: >> >> 2010/8/1 Dennis Schridde : >> > Hello! >> > >> > I just started experimenting with CPack. According to the docs and >> > code it is to be used like this

Re: [CMake] Support for multiple components in cpack

2010-08-02 Thread Eric Noulard
Hi All, I did add a patch for the "multiple file problem" http://public.kitware.com/Bug/view.php?id=10736 May be interested people can have a try and comment this patch. It adds the possibility for any CPack generators to generate multiple file. It adds "preliminary" support for component to al

Re: [CMake] [cmake-developers] Support for multiple components in cpack

2010-08-02 Thread Eric Noulard
2010/8/2 Clinton Stimpson : >> >> Waiting for feedback before going on > > So I wondered if we were basically getting 3 modes out of this: > > 1. put multiple components in one components aware package (nsis, > packagemaker,...). > 2. put multiple components in one non-component aware package (tar

Re: [CMake] [cmake-developers] Support for multiple components in cpack

2010-08-03 Thread Eric Noulard
2010/8/3 Dr. Stefan Sablatnög : > Hi all, > > first of all many thanks for considering to provide such a functionality. > I tried it on an small example yesterday and it worked as expected > (I patched against cmake 2.8.2), a larger test will follow as soon as I > find the time. Ok thanks. Do not

Re: [CMake] [cmake-developers] Support for multiple components in cpack

2010-08-03 Thread Eric Noulard
2010/8/3 David Cole : > On Mon, Aug 2, 2010 at 6:57 PM, Eric Noulard wrote: >> >> 2. may always be an option because it was the behavior we had before the >> component support and ALL CPack generator may handle an all-in-one >> package. >> We could add an OPTIO

Re: [CMake] [cmake-developers] Support for multiple components in cpack

2010-08-03 Thread Eric Noulard
2010/8/3 Eric Noulard : > 2010/8/3 Dr. Stefan Sablatnög : >> Hi all, >> >> first of all many thanks for considering to provide such a functionality. >> I tried it on an small example yesterday and it worked as expected >> (I patched against cmake 2.8.2), a lar

Re: [CMake] [cmake-developers] Support for multiple components in cpack

2010-08-03 Thread Eric Noulard
2010/8/3 Eric Noulard : > 2010/8/3 David Cole : >> On Mon, Aug 2, 2010 at 6:57 PM, Eric Noulard wrote: > >>> >>> 2. may always be an option because it was the behavior we had before the >>> component support and ALL CPack generator may handle an all-in-one

Re: [CMake] Support for multiple components in cpack

2010-08-03 Thread Eric Noulard
2010/8/2 Eric Noulard : > Hi All, > > I did add a patch for the "multiple file problem" > http://public.kitware.com/Bug/view.php?id=10736 > > May be interested people can have a try and comment > this patch. > > It adds the possibility  for any CPack generators

Re: [CMake] Double linking / linking static libraries

2010-08-04 Thread Eric Noulard
2010/8/4 Dennis Schridde : > > I am > using Fedora release 12 and cmake version 2.6-patch 4. > The issue is not > reproducible on Gentoo/Linux and cmake version 2.8.1. > > Is cmake-2.6 still being maintained? I don't think so. I think Bill told that 2.6.4 was the last release for 2.6.x. > Otherwi

Re: [CMake] Building source RPMs?

2010-08-05 Thread Eric Noulard
2010/8/5 Magnus Therning : > I'm currently using CPack to build binary RPMs, is there a way to also > generate a source RPM? Not yet...with CPackRPM. Building a source RPM with CMake/CPack is not as easy as building a binary RPM. Because currently the spec file used to build a binary RPM is a "s

Re: [CMake] Building source RPMs?

2010-08-05 Thread Eric Noulard
2010/8/5 Alexander Neundorf : > On Thursday 05 August 2010, Magnus Therning wrote: >> On Thu, Aug 5, 2010 at 10:39, Eric Noulard wrote: > ... >> > What is your usage pattern? >> >> We ship most of our sources as source RPMs since most of our changes are >>

Re: [CMake] Small, complete CPack example?

2010-08-05 Thread Eric Noulard
2010/8/6 Chris Wolf : > > Unfortunately, at first, I din't see how your example is different from > the parts of my CMakeList.txt I sent in my last post. > > Then I noticed that your "install(TARGETS..." command had a relative > path for "DESTINATION", whereas mine had an absolute path.  When > I c

Re: [CMake] [cmake-developers] Support for multiple components in cpack

2010-08-05 Thread Eric Noulard
2010/8/3 Eric Noulard : > 2010/8/3 David Cole : >> On Mon, Aug 2, 2010 at 6:57 PM, Eric Noulard wrote: > >>> >>> 2. may always be an option because it was the behavior we had before the >>> component support and ALL CPack generator may handle an all-in-one

Re: [CMake] Support for multiple components in cpack

2010-08-05 Thread Eric Noulard
2010/8/4 Kishore : > On Monday 02 Aug 2010 4:59:47 pm Eric Noulard wrote: >> Hi All, >> >> I did add a patch for the "multiple file problem" >> http://public.kitware.com/Bug/view.php?id=10736 >> >> May be interested people can have a try and com

Re: [CMake] Small, complete CPack example?

2010-08-06 Thread Eric Noulard
2010/8/6 Chris Wolf : > > e.g for :  install(TARGETS usb LIBRARY DESTINATION lib) > > (where project name is "libusb") > > The CPack-generated TGZ archive will contain: > libusb-0.1.1-Darwin/lib/libusb.dylib > > ...this, regardless of the setting of CPACK_INCLUDE_TOPLEVEL_DIRECTORY! > > (I would ha

Re: [CMake] Setting CMAKE_MODULE_PATH in CMakeLists.txt

2010-08-06 Thread Eric Noulard
2010/8/7 Jashank Jeremy : > Hi, > > I'm working on a project that requires an additional module, which is > shipped with the project, but I'd like CMake to add CMAKE_SOURCE_PATH > to CMAKE_MODULE_PATH to pick up the additional module. > > I've tried adding > > set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_

Re: [CMake] Error with cpack -G ZIP

2010-08-06 Thread Eric Noulard
2010/8/6 Chris Wolf : > I am trying the ZIP package type and I get the same error on MacOS and Linux: > > CPack Error: archive_write_header:Filetype not supportedNo such file or > directory -25 > CPack Error: archive_write_data(): tried to write 16384 > write 0 > > > I searched around in case this

Re: [CMake] still having a problem with PackageMaker, and now DEB

2010-08-06 Thread Eric Noulard
2010/8/6 Chris Wolf : > Earlier, I identified a problem with the "PackageMaker" (Apple) packager, > and now, I see the same exact problem with the "DEB" (Debian) > packager - it keeps prefixing "./usr" to all the paths. > > Changing CPACK_PACKAGING_INSTALL_PREFIX doesn't do anything > (even when it

Re: [CMake] still having a problem with PackageMaker, and now DEB

2010-08-07 Thread Eric Noulard
2010/8/7 Chris Wolf : > On 8/6/10 8:55 PM, Eric Noulard wrote: >> >> Did you try the command line? >> >> cpack -D CPACK_PACKAGING_INSTALL_PREFIX="/opt" -G DEB >> >> it works for me. >> >> if it works for you may be >> CPA

Re: [CMake] still having a problem with PackageMaker, and now DEB

2010-08-08 Thread Eric Noulard
2010/8/7 David Cole : > Excellent! I am now officially done for the weekend. :-) > Would you recommend a certain location on the Wiki? i.e. -- were you looking > someplace for this, and found a place where you think such an explanation > should go...? I'll be happy to add this to the Wiki, but freq

Re: [CMake] Support for multiple components in cpack

2010-08-09 Thread Eric Noulard
2010/8/9 Chris Wolf : > > > On 8/9/10 12:11 PM, Kishore wrote: >> On Friday 06 Aug 2010 4:18:36 am Eric Noulard wrote: >>> 2010/8/4 Kishore : >>>> On Monday 02 Aug 2010 4:59:47 pm Eric Noulard wrote: >>>>> Hi All, >>>>>

Re: [CMake] compiling hiphop-php with CMake failed, where is the parameter: EXTRA_LIBS ?

2010-08-09 Thread Eric Noulard
2010/8/10 a qi : > HI, ALL > > hiphop-php needs cmake to compile,  but I got this error  when  running  make > : May the right place to ask for that would be the HipHop PHP Mailing list? http://groups.google.com/group/hiphop-php-dev/?pli=1 ---

Re: [CMake] CPack Optional Component

2010-08-10 Thread Eric Noulard
2010/8/10 Vincent LEFORT : > Hi, > I come back to know if anyone have an idea of howto do this tricks ? I think you should have a look at this thread: http://www.cmake.org/pipermail/cmake/2010-August/038831.html which explains how to do generator specific things at CPack time. >> Hello, i use CPa

Re: [CMake] Support for multiple components in cpack

2010-08-11 Thread Eric Noulard
2010/8/11 Thawan Kooburat : > Hi Eric, > > I read though this thread and also two bug reports related to this issue. > > It seems like it will take a while because of CPack design issue. Do > you think there will be any workaround or small hack to make this work > with current CPackRPM? I think it

Re: [CMake] How to build .ax libraries with cmake?

2010-08-14 Thread Eric Noulard
2010/8/14 Mr Shore : > Hi all, > > The source and binary are available here: > > http://tmhare.mvps.org/downloads/vcam.zip > > How to build .ax libraries with cmake? May be some dummy newbie questions but ... - Can tell us a little about **what are** AX libraries? - Some documentation? URL ? - Wh

Re: [CMake] Relocatable RPM

2010-08-17 Thread Eric Noulard
2010/8/17 Gerald Hofmann : > Hi Will, > > I found a way to make the RPM relocatable. > > This brings some light into rpm relocation: > http://www.rpm.org/max-rpm/ch-rpm-reloc.html > > The Prefix: tag gives the part of the file names which is replaced when > another prefix is specified. You can di

Re: [CMake] Relocatable RPM

2010-08-17 Thread Eric Noulard
2010/8/17 Rolf Eike Beer : > Am Tuesday 17 August 2010 schrieb Eric Noulard: > >> set(CPACK_RPM_PACKAGE_RELOCATABLE TRUE) >> >> and CPackRPM will try to build a relocatable package. >> This will surely FAIL if: >>      - some file are installed with absolute pat

Re: [CMake] Changes from 2.4.8 to 2.6.4

2010-08-18 Thread Eric Noulard
2010/8/17 Orion Poplawski : > On 08/17/2010 02:58 PM, Alexander Neundorf wrote: >> >> Hi, >> >> On Tuesday 17 August 2010, Orion Poplawski wrote: >>> >>> I'm contemplating updating the version of cmake in EPEL[1] 5 from 2.4.8 >>> to >>> 2.6.4 >> >> Why not go directly to 2.8.2 ? >> I think there ar

Re: [CMake] makefile to CMakeLists.txt, possible?

2010-08-19 Thread Eric Noulard
2010/8/19 Mr Shore : > As we know most (old) open source projects are using makefile, > > is there a tool to convert makefile to CMakeLists.txt ? None I am aware of. Some converters are listed on the Wiki: http://www.cmake.org/Wiki/CMake#Converters_from_other_buildsystems_to_CMake I have some v

Re: [CMake] makefile to CMakeLists.txt, possible?

2010-08-19 Thread Eric Noulard
2010/8/19 Mr Shore : > Actually it's not my projects, but the well known projects like MySQL, > Firefox and so on.. CMakeifying this kind of project may not be an easy task, moreover my own opinion is that you shoudl ensure that the project stakeholder may be interested in this effort. In fact if

Re: [CMake] makefile to CMakeLists.txt, possible?

2010-08-19 Thread Eric Noulard
2010/8/19 Mr Shore : > Basically, cmake parsor can understand makefile, that's why it can generate > makefile from CMakeLists.txt, As far as I know CMake does NOT understand Makefile it does **generates** makefiles which is totally different story. Again AFAIK CMake is never **reading** a Makefil

Re: [CMake] BundleUtilities naming and easing packaging

2010-08-20 Thread Eric Noulard
2010/8/20 David Cole : > On Fri, Aug 20, 2010 at 7:37 AM, Mike McQuaid wrote: >> >> Hi, >> >> There's been some discussion on >> http://public.kitware.com/Bug/view.php?id=11126 and I raised the issue about >> the BundleUtilities port to Windows/Linux: the naming is so bad as to make >> this (prett

Re: [CMake] BundleUtilities naming and easing packaging

2010-08-20 Thread Eric Noulard
2010/8/20 Mike McQuaid : > > On 20 Aug 2010, at 13:09, David Cole wrote: > >> Not a big fan of this one either. Personally, I think it's stupid even to >> have differences between the build tree and the install tree. Now, with >> this, you'd have differences between the "make install" tree and t

[CMake] Support for multiple components in cpack (reloaded)

2010-08-21 Thread Eric Noulard
Hi All, I finally rebased my previous work on component support for Archive Generators (i.e. STGZ TBZ2 TGZ TZZIP) (see also ML discussions: http://www.cmake.org/pipermail/cmake/2010-July/038575.html http://www.cmake.org/pipermail/cmake/2010-August/038663.html http://www.cmake.org/pi

Re: [CMake] Support for multiple components in cpack (reloaded)

2010-08-21 Thread Eric Noulard
2010/8/21 Eric Noulard : [...] > They change the number and the contents of the generated packages: >    3.a) CPACK_COMPONENTS_ALL_GROUPS_IN_ONE_PACKAGE=1 >          means you want to get a single package whose content >          is the merge of all components GROUP

Re: [CMake] Support for multiple components in cpack (reloaded)

2010-08-22 Thread Eric Noulard
2010/8/22 Rolf Eike Beer : > Am Saturday 21 August 2010 schrieb Eric Noulard: > >> They change the number and the contents of the generated packages: >>     3.a) CPACK_COMPONENTS_ALL_GROUPS_IN_ONE_PACKAGE=1 >>           means you want to get a single package whose content &

Re: [CMake] Support for multiple components in cpack (reloaded)

2010-08-22 Thread Eric Noulard
2010/8/21 Clinton Stimpson : > > I wondered if one would typically use groups if their project contained sub > projects, and the sub projects had different conventions for the component > names. I do not usually work with sub-project and I must admit I don't even know how CPack behave for projec

Re: [CMake] Support for multiple components in cpack (reloaded)

2010-08-22 Thread Eric Noulard
2010/8/22 Eric Noulard : > 2010/8/22 Rolf Eike Beer : >> Am Saturday 21 August 2010 schrieb Eric Noulard: >> >>> They change the number and the contents of the generated packages: >>>     3.a) CPACK_COMPONENTS_ALL_GROUPS_IN_ONE_PACKAGE=1 >>>           me

Re: [CMake] Support for multiple components in cpack (reloaded)

2010-08-22 Thread Eric Noulard
2010/8/22 Eric Noulard : > 2010/8/21 Clinton Stimpson : >> >> I wondered if one would typically use groups if their project contained sub >> projects, and the sub projects had different conventions for the component >> names. > > I do not usually work with sub

Re: [CMake] How to invoke 64 bit cmd.exe from cmake script onWindows 7 (x64).

2010-08-23 Thread Eric Noulard
2010/8/23 Alexander Tarnopolsky : > Thanks for prompt reply. > > In a simple case I invoke just interactive shell using full path to > 64bit cmd.exe : > > file (TO_NATIVE_PATH "$ENV{COMSPEC}" SHELL) > SET (ARGS /k) > execute_process (COMMAND ${SHELL} ${ARGS}) > > Still I see that the cmd process ru

Re: [CMake] Support for multiple components in cpack (reloaded)

2010-08-23 Thread Eric Noulard
2010/8/23 Clinton Stimpson : > On 08/22/2010 10:47 AM, Eric Noulard wrote: >> >> 2010/8/22 Eric Noulard: >> >>> >>> 2010/8/21 Clinton Stimpson: >>> >>>> >>>> I wondered if one would typically use groups if their project con

  1   2   3   4   5   6   7   8   9   10   >