Re: [CMake] package_source target?

2008-11-10 Thread Eric Noulard
2008/11/7 Alin M Elena <[EMAIL PROTECTED]>: > Hi, > > Sorry for the quoting thing. the cvs one. It seems that neither CVS HEAD nor CVS CMake-2-6 generates the package_source target any more... whereas CMake-2-6-2 do generates the package_source... I'll wait the next RC before filing a bug :-) -

Re: [CMake] file-glob question

2008-11-10 Thread Eric NOULARD
Le Mon, 10 Nov 2008 12:36:04 +0100, "Steven Van Ingelgem" <[EMAIL PROTECTED]> a écrit : > Hi all, > > > I'm trying to do the following: > > file(GLOB PLUGINS plugins/*) > > This returns all the absolute paths to the plugins. Which is fine. > > But, when I try: > > file(GLOB PLUGINS RELATIVE

Re: [CMake] my FindDevIL.cmake module

2008-11-10 Thread Eric Noulard
2008/11/10 Miguel A. Figueroa-Villanueva <[EMAIL PROTECTED]>: >> Thanks for the valuable input. I've slimmed down my file a bit and used >> the find_package_handle_standard_arg macro. It's attached to this >> message. Again feel free to include it in cmake or give more input on >> it. (or not, it's

Re: [CMake] How to disable cmake_clean_target.cmake script from executing.

2008-11-10 Thread Eric NOULARD
Le Mon, 10 Nov 2008 16:22:48 +0900, "이명현" <[EMAIL PROTECTED]> a écrit : > Hi, > I am working in a system where a static library(archive) is build with > source files that are distributed among several directories. > > CMakeLists.txt > src / > > CMakeLists.txt > *.cpp files > src1/ > > CMakeList

Re: [CMake] What does `cross-platform' mean?

2008-11-09 Thread Eric NOULARD
Le Sun, 09 Nov 2008 17:55:12 -0500, Bill Hoffman <[EMAIL PROTECTED]> a écrit : > 2. CMake needs a way to easily chain variables together so that you > can clear stuff out if a dependent variable is changed by the user. > So, if you have MY_PATH_TO_TOOL=/path/to/tool, and it changes to > /new/pat

Re: [CMake] Avoid nested cmake invocation taking parent's info.

2008-11-09 Thread Eric NOULARD
Le Sun, 09 Nov 2008 22:24:45 +0100, Óscar Fuentes <[EMAIL PROTECTED]> a écrit : > While cross-compiling, I'm trying to avoid depending on previously > built executables, that is, the cross-compile build should create the > native utilities it needs. For this, I'm trying > > execute_process( > CO

Re: [CMake] making Nightly builds easier to setup

2008-11-09 Thread Eric Noulard
2008/11/9 Alexander Neundorf <[EMAIL PROTECTED]>: [...] > commands can be executed. > > IMO this can make setting up Nightly builds much easier. Looks interesting, I didn't ever thought ctest scripting was done for that. I did shell scripts for that and was wondering how to do it on Windows :-)

Re: [CMake] What does `cross-platform' mean?

2008-11-07 Thread Eric Noulard
2008/11/7 Jed Brown <[EMAIL PROTECTED]>: >> >> If the underlying tool is efficient then CMake FIND module should find >> the appropriate version. > > Thank you Eric, this greatly clarifies some design decisions. May I > interpret this to mean that CMake does not intend to be concerned with > findi

Re: [CMake] What does `cross-platform' mean?

2008-11-07 Thread Eric Noulard
2008/11/7 Jed Brown <[EMAIL PROTECTED]>: >> My current opinion is the "multiple version" issue should be handle >> by a "CRAY module"-like tool and not by CMake itself. >> >> If the underlying tool is efficient then CMake FIND module should find >> the appropriate version. > > Thank you Eric, this

Re: [CMake] What does `cross-platform' mean?

2008-11-07 Thread Eric Noulard
2008/11/7 Jed Brown <[EMAIL PROTECTED]>: > I find that CMake works well when there is only one version of installed > software, and shared libraries are used. When there are multiple > ABI-incompatible versions of libraries or no shared libraries, many > modules are broken. They will systematical

Re: [CMake] Eclipse CDT and CMake

2008-11-06 Thread Eric Noulard
2008/11/7 Michael Jackson <[EMAIL PROTECTED]>: > > On Nov 6, 2008, at 7:26 PM, Neal Meyer wrote: > >> I'm on a Mac and I was wondering if there are any plans to support full >> CDT projects from CMake? >> >> -Neal > > I thought there was a CDT generator as part of CMake? Yes there is: http://www.c

Re: [CMake] seperate source/build directories (Was: cleaning targets)

2008-11-06 Thread Eric NOULARD
Le Thu, 06 Nov 2008 14:15:21 -0700, "Eric (Brad) Lemings" <[EMAIL PROTECTED]> a écrit : > Eric Noulard wrote: > > 2008/11/6 Michael Jackson <[EMAIL PROTECTED]>: > > > >> All this is asking is 2 extra commands. > >> > > > >

Re: [CMake] seperate source/build directories (Was: cleaning targets)

2008-11-06 Thread Eric Noulard
2008/11/6 Michael Jackson <[EMAIL PROTECTED]>: > > On Nov 6, 2008, at 3:02 PM, Eric (Brad) Lemings wrote: > >> Michael Jackson wrote: >>> >>> Are you using a dedicated build directory or are you running cmake >>> directly from your source directory? If the latter.. STOP.. don't do >>> that. If you

Re: [CMake] Cannot recompile CMake CVS from scratch?

2008-11-05 Thread Eric Noulard
2008/11/5 Eric Noulard <[EMAIL PROTECTED]>: > I recently re-organised my CMake build trees > and now I get the following error: > >>>> > uic: File generated with too recent version of Qt Designer (4.0 vs. 3.3.8b) >>>> > > What should I do in order t

[CMake] Cannot recompile CMake CVS from scratch?

2008-11-05 Thread Eric Noulard
I recently re-organised my CMake build trees and now I get the following error: >>> uic: File generated with too recent version of Qt Designer (4.0 vs. 3.3.8b) >>> What should I do in order to fix it? -- Erk ___ CMake mailing list CMake@cmake.org http:

Re: [CMake] CPack DEB Packaging: Automate dependency resolution

2008-11-05 Thread Eric Noulard
2008/11/5 Mathieu Malaterre <[EMAIL PROTECTED]>: > On Tue, Nov 4, 2008 at 8:16 PM, Alexander Neundorf > <[EMAIL PROTECTED]> wrote: >> On Tuesday 04 November 2008, Mathieu Malaterre wrote: >>> > You really should be using Debian utilities. >>> >>> Not unless you are on a debian machine. Technically

Re: [CMake] Writing platform check

2008-11-04 Thread Eric Noulard
2008/11/5 Rajika Kumarasiri <[EMAIL PROTECTED]>: > hello every body, > I was trying to generate and use a config.h file from a very simple > config.h.in file for cross compilation of my software, cmake gave me the > following error. I was reading the guide here[1]. > > > -- The C compiler identific

Re: [CMake] CPack DEB Packaging: Automate dependency resolution

2008-11-03 Thread Eric Noulard
2008/11/1 Eric Noulard <[EMAIL PROTECTED]>: > 2008/11/1 David Graf <[EMAIL PROTECTED]>: >> Currently in my project, I provide all dependencies for DEB packaging in >> CPack by setting the variable CPACK_DEBIAN_PACKAGE_DEPENDS. Is there a >> possibility to auto

Re: [CMake] Linking my lib to a static lib

2008-11-03 Thread Eric Noulard
2008/11/3 Daniel Blankensteiner <[EMAIL PROTECTED]>: > On Mon, 3 Nov 2008 15:39:15 +0100, "Eric Noulard" <[EMAIL PROTECTED]> > wrote: >>> 1. The dependencies to the static libs are not included in my >> VS-solution file. >> >> I do not unde

Re: [CMake] Linking my lib to a static lib

2008-11-03 Thread Eric Noulard
2008/11/3 Daniel Blankensteiner <[EMAIL PROTECTED]>: > Hi all > > I have read most of the "Mastering Cmake" book and googled, but I couldn't > find an answer, so I hope someone here can help me. > > I'm building a lib and want to include other static libs, so that it's all > in one file, but I curr

Re: [CMake] CPack DEB Packaging: Automate dependency resolution

2008-11-01 Thread Eric Noulard
2008/11/1 David Graf <[EMAIL PROTECTED]>: > Hello > > Currently in my project, I provide all dependencies for DEB packaging in > CPack by setting the variable CPACK_DEBIAN_PACKAGE_DEPENDS. Is there a > possibility to automate this process (similar to the behavior of the CPack > RPM packaging mechan

Re: [CMake] Visual Studio dependency/auto-install help

2008-10-31 Thread Eric NOULARD
Le Fri, 31 Oct 2008 11:58:53 -0700, "Sam Baker" <[EMAIL PROTECTED]> a écrit : > When generating MSVS solutions, is there a way to make all library > projects automatically build the solution's INSTALL project when done? Why don't you make the "INSTALL" project the default project of your solutio

Re: [CMake] how to set the location for the LastTest.log

2008-10-31 Thread Eric Noulard
2008/10/31 daniel trindade <[EMAIL PROTECTED]>: > By default, LastTest.log is generated in SRC_ROOT/Testing/Temporary. I think it is generated in ${CMAKE_BINARY_DIR}/Testing/ You must be building in-source. > Is there a way to change this using some command in CMakeList.txt? > I searched in

Re: [CMake] RPM Package Dependencies

2008-10-31 Thread Eric Noulard
2008/10/31 David Graf <[EMAIL PROTECTED]>: > Hello > > Thanks a lot! It works! > > I made a feature request (http://public.kitware.com/Bug/view.php?id=7904). > Please attach your updated CPackRPM.cmake to it. Done. I did attach a patch against current CMake-2-6 tree. -- Erk _

Re: [CMake] RPM Package Dependencies

2008-10-30 Thread Eric Noulard
27;ll try harder. -- Erk # CPack script for creating RPM package # Author: Eric Noulard with the help of Alexander Neundorf. # All variables used by CPackRPM begins with CPACK_RPM_ prefix # # Here comes the list of used variables: # IF(CMAKE_BINARY_DIR) MESSAGE(FATAL_ERROR "CPackRPM.cma

[CMake] [CTest] Proper way to set up "Site name" and @IP information

2008-10-29 Thread Eric Noulard
Hi All, I'm using CTest to submit to CDash and I want to give my "Site Name" a more readable value. I did find that I may use: ctest --overwrite Site="Eric at Home" -D Experimental Is it the right way to do it? -- Erk ___ CMake mailing list CMake

Re: [CMake] Using cache in -P scripts?

2008-10-23 Thread Eric Noulard
2008/10/23 Abe Stephens <[EMAIL PROTECTED]>: > Hi, Thanks for the reply. But perhaps I should clarify--I'd like to avoid > using lots and lots of -D arguments. So instead of doing something like > this: > > add_custom_command( > output file1.cc > command ${CMAKE_COMMAND} > args -D var0="${cached

Re: [CMake] [New Module] FindRTI.cmake

2008-10-23 Thread Eric Noulard
2008/10/23 Gotthard, Petr <[EMAIL PROTECTED]>: > Hello, > I propose the attached FindRTI.cmake to be included in CMake. I > volunteer to be its maintainer. As I already told I would find it useful to add this Module to CMake distro we currently use CMake for CERTI https://savannah.nongnu.org/proje

Re: [CMake] Visual Studio: Add file to project without compiling it

2008-10-23 Thread Eric Noulard
2008/10/22 Eric Noulard <[EMAIL PROTECTED]>: > Hi Matthias, > > Would you try to build the attached project with your configuration > and tell whether if the IDL file shows up in the IdlSymbols library? I've just made a test with the attached file on Windows 2000 + Visual S

Re: [CMake] Find_Path problem

2008-10-22 Thread Eric NOULARD
Le Wed, 22 Oct 2008 20:33:15 +0200, Wilfried Holzke <[EMAIL PROTECTED]> a écrit : > Hi, > > I have an library header file in > "/usr/include/libNAME-version/libNAME/name.h" and want to find the > path. > > I tried > > FIND_PATH(INC_PATH libNAME/name.h /usr/include/libNAME-*/) > > as INC_PATH I

Re: [CMake] Use of CMake OPTION in code

2008-10-21 Thread Eric Noulard
2008/10/21 Pelt, R.F.P. van <[EMAIL PROTECTED]>: > > Dear all, > > Recently I have added an option to a CMake project that I'm using. > > For example: > OPTION(BUILD_EXTRA_STUFF "Build extra stuff." ON) > > Whenever this is enables, this also changes a couple of things in > the code, which is curre

Re: [CMake] Visual Studio: Add file to project without compiling it

2008-10-21 Thread Eric Noulard
2008/10/21 Matthias Riechmann <[EMAIL PROTECTED]>: > Yes, I already tried that without detecting any effect. Seems like VS is > quite persistent on files it thinks to be able to handle by itself. This is odd, I did succeed to add non source file to a CMake generated VS project, as soon as the fi

Re: [CMake] Visual Studio: Add file to project without compiling it

2008-10-20 Thread Eric Noulard
2008/10/20 Matthias Riechmann <[EMAIL PROTECTED]>: > Hello, > > I'd like to make CMake including a file in way so that it is visible in a > generated visual studio project and can be edited in this way, but is not > processed by the compiler. Yes I think this issue is coming out more and more. I'v

Re: [CMake] Simple CPack example is needed...

2008-10-20 Thread Eric Noulard
2008/10/20 Dick Munroe <[EMAIL PROTECTED]>: > And once I keep CPack.make from clobbering CPACK_INSTALL_CMAKE_PROJECTS I > get kits built as well. > > Here's something simple you can try to see the problem: > > project(foo) > > ... > > set( > CPACK_

Re: [CMake] Simple CPack example is needed...

2008-10-19 Thread Eric Noulard
2008/10/18 Dick Munroe <[EMAIL PROTECTED]>: > I've gotten to the point where I need to build an installer and want to use > CPack. The available documentation is pretty impenetrable and I can't find > any simple examples on the web. I've found a bug in the CPack.make file > shipped with CMake 2.6

Re: [CMake] How to add non-source files to a Visual Studio project?

2008-10-17 Thread Eric Noulard
2008/10/17 Andrew Fenn <[EMAIL PROTECTED]>: > This method will generate a visual studio sln with the project lib1 inside. > > Whatever you want to add to the project lib1 put it into lib1_source > before it calls add_library(lib1, [source files]) Yes now I understand, the fact is the "non sources

Re: [CMake] How to add non-source files to a Visual Studio project?

2008-10-17 Thread Eric Noulard
Hi Andrew, Sorry, but I do not understand your answer? I have no problem for writing CMakeLists.txt files for lib1/lib2/app1/app2 I dot not know how to add non-source file to a Visual Studio project generated with CMake. -- Erk ___ CMake mailing lis

[CMake] How to add non-source files to a Visual Studio project?

2008-10-17 Thread Eric Noulard
Hi All, I have a project which has a structure similar to: project/src/lib1 /src/lib2 /src/app1 /src/app2 /initFiles each subdir has its own CMakeLists.txt the content of project/initFiles are files which are CONFIGUREd (with CONFIGURE_FILE) and INSTALLed

Re: [CMake] Autotools replacement functions?

2008-10-15 Thread Eric Noulard
2008/10/15 Andrew Fenn <[EMAIL PROTECTED]>: > Does cmake have replacement functions for the following? > > AC_CHECK_MEMBER(struct msghdr.msg_flags, > [AC_DEFINE(HAS_MSGHDR_FLAGS)], , [#include ]) > > CHECK_FUNCTION_EXISTS(socklen_t HAS_SOCKLEN_T) > AC_CHECK_TYPE(socklen_t, [AC_DEFINE(HAS_SOCKLEN_T)

Re: [CMake] public headers with different subdirectories

2008-10-14 Thread Eric Noulard
2008/10/14 Hendrik Sattler <[EMAIL PROTECTED]>: > Hi, > > suppose I have a library that has several header files. Those header files are > do not have a flat tree but some subdirectories. > However, I'd like to use the PUBLIC_HEADER property and install stuff. > > Can this be done with > install(T

Re: [CMake] Undocumented FILE(INSTALL ...

2008-10-14 Thread Eric NOULARD
Le Tue, 14 Oct 2008 14:32:06 -0700, "Andy Lego" <[EMAIL PROTECTED]> a écrit : > Hi Eric, > > The FILE(INSTALL command is an internal command used for install > process. It seems to have good property regarding DESTDIR handling, so I was wanting to use it :=) > If there is a DESTDIR problem, th

[CMake] Undocumented FILE(INSTALL ...

2008-10-14 Thread Eric Noulard
Hi All, I am using CONFIGURE_FILE(doc_install.in doc_install.cmake @ONLY) INSTALL(SCRIPT ${CMAKE_BINARY_DIR}/doc_install.cmake COMPONENT DOC) The doc_install.cmake contains CMake commands used to copy the result of Doxygen outputs (1 dir and 1 file) I discovered that my doc_install.cmake was br

Re: [CMake] Configuring .bat file with native path under windows

2008-10-14 Thread Eric Noulard
2008/10/14 Nicolas Desprès <[EMAIL PROTECTED]>: > On Tue, Oct 14, 2008 at 4:48 PM, Andy Lego <[EMAIL PROTECTED]> wrote: >> Hi, >> >> Look at FILE and STRING commands. > > Thanks. That's what I did. May be FILE(TO_NATIVE_PATH ${in} ${out}) is easier than string(REPLACE ... TO_NATIVE_PATH works

Re: [CMake] adding to variables within subdirectories

2008-10-13 Thread Eric Noulard
2008/10/14 Paul Harris <[EMAIL PROTECTED]>: > Hi, > > In the root CMakeLists.txt, I have a variable - a list of files... > > set( TRANSFILES ) ? how do i create an empty list ? > > > then i add a subdirectory > add_subdirectory(whatever) > > and in whatever/CMakeLists.txt, i want to add some file

Re: [CMake] CPack 2.6.2: can't create temporary directory

2008-10-13 Thread Eric Noulard
2008/10/13 Bill Hoffman <[EMAIL PROTECTED]>: > Eric Noulard wrote: >> >> It seems that DESTDIR is not honored in CMake 2.6.[12] >> whereas it was in 2.6.0. >> >> Change has been made in Source/CPack/cmCPackGenerator.cxx::prepareNames >> which does not c

Re: [CMake] CPack 2.6.2: can't create temporary directory

2008-10-13 Thread Eric Noulard
2008/10/13 Petri Hodju <[EMAIL PROTECTED]>: > Hi! > > I have put together a custom way of building packages inspired by Stuart > Herring posted here earlier: > > Fri Apr 4 20:39:04 EDT 2008 > [CMake] CPack: Building Multiple Packages > > Everything is working fine with version 2.6.0 but things brea

Re: [CMake] How to specify that a target link library is shared ?

2008-10-07 Thread Eric Noulard
2008/10/7 Andrea Borsic <[EMAIL PROTECTED]>: > Dear All, > > I am a recent user of CMake, and I cannot figure out how to tell CMake that > a TARGET_LINK_LIBRARY is shared. I am working under Windows Xp with MS > VisualStudio 2008, and the following is my CMakeLists file: > > PROJECT(Triangle) > > A

Re: [CMake] (CPack) Separate packaging of subdirectories

2008-10-02 Thread Eric Noulard
2008/10/2 0xd34df00d <[EMAIL PROTECTED]>: > Hi there! > > I have a project which consists of main application, few helper > libraries and some plugins, each of them is in its own directory with > own CMakeLists.txt and target. Targets are added using ADD_LIBRARY and > ADD_EXECUTABLE commands. > How

Re: [CMake] [New Module] FindXXX module for RTI

2008-09-22 Thread Eric Noulard
2008/9/22 Philip Lowman <[EMAIL PROTECTED]>: > On Sat, Sep 13, 2008 at 4:12 PM, Gotthard, Petr > <[EMAIL PROTECTED]> wrote: >> >> Hello, >> would you accept a new module: FindRTI.cmake? >> [...] >> >> First version of the FindRTI.cmake module is ready and I volunteer to be >> its maintainer. > > I

Re: [CMake] how to link with a system library ?

2008-09-21 Thread Eric Noulard
2008/9/21 Mike Jackson <[EMAIL PROTECTED]>: >>> www.bluequartz.net >> >> CMake Error: GTK NOT FOUND >> -- Configuring done >> make: *** [cmake_check_build_system] Error 255 >> >> GTK 2.0 comes into my Kubuntu 8.0.4 system with a standard debian package. >> Nothing customized. All in standard paths.

Re: [CMake] how to link with a system library ?

2008-09-21 Thread Eric Noulard
2008/9/21 Steven Samuel Cole <[EMAIL PROTECTED]>: > I would like to link a system library into an executable, GTK in this case. > What I'm trying to do is > > include(FindGTK) > > target_link_libraries(myexec $GTK_LIBRARIES) > > add_executable (myexec sources) > > Result: > > CMake Error: Attempt t

Re: [CMake] possible bug report on release binary dynamic library search paths

2008-09-19 Thread Eric Noulard
2008/9/19 Christopher Harvey <[EMAIL PROTECTED]>: > Sorry about the long subject, > > My question is about the way cmake defines dynamic link library search paths > for release builds of executables. I've got an executable, written in C++ > that depends on a shared library within the same project.

Re: [CMake] Google's protocol buffers cmake module

2008-09-19 Thread Eric Noulard
2008/9/19 Esben Mose Hansen <[EMAIL PROTECTED]>: > On Friday 12 September 2008 14:08:01 Esben Mose Hansen wrote: >> Hi, >> >> I was unable to find a cmake module for google's protocol buffers, so I >> wrote my own. Is there some sort of repository for these things? The module >> probably does not h

Re: [CMake] convert variable from hex to integer

2008-09-19 Thread Eric Noulard
2008/9/19 Olaf Peter <[EMAIL PROTECTED]>: > Hi, > > for a generated version header I need to convert a given hex to an integer. > I've wrote: > > set(RELEASE_LEVEL_ALPHA 0xA)# For internal use > set(RELEASE_LEVEL_BETA 0xB)# For internal use > set(RELEASE_LEVEL_GAMMA 0xC)# For release c

Re: [CMake] using cmake with google's protocol buffers

2008-09-18 Thread Eric Noulard
2008/9/18 Neil Girdhar <[EMAIL PROTECTED]>: > > Hi, I'm trying to add a special cmake rule to build google's protocol > buffers, and I was hoping someone could help me do it. I've broken down the > details of the protocol compiler here, so all that's missing is a cmake > expert. Did you look at t

Re: [CMake] find_package vs. include

2008-09-17 Thread Eric Noulard
2008/9/17 Robert Haines <[EMAIL PROTECTED]>: > Hi all, > > As far as I can tell both (for example) find_package(MPI) and > include(FindMPI) do the same thing. All the required bits and pieces are set > and usable for the rest of the build. > > Is there any difference under the hood, and should I be

Re: [CMake] Clearing all cmake files

2008-09-10 Thread Eric Noulard
2008/9/9 Robert Kubrick <[EMAIL PROTECTED]>: > I did not use an out of source build, so that of course would simplify > things, but I still think that a command like: > > cmake erase > > Would be convenient to clear all cmake generated files and roll-back to the > scenario *before* 'cmake .' Yes, I

Re: [CMake] [Cmake] Absolute paths in .cmake, .txt files

2008-09-04 Thread Eric NOULARD
Le Thu, 4 Sep 2008 09:13:31 -0400, "Bo Huang" <[EMAIL PROTECTED]> a écrit : > I observed that in .cmake, .txt, .depend, .sln, .vcproj files, paths > are always absolute when generated. Is there anyway to automatically > make them relative or set a global path? So far I can only change the > Visual

Re: [CMake] CPack - some questions

2008-08-28 Thread Eric Noulard
2008/8/27 Vitor Vasconcelos Araujo Silva <[EMAIL PROTECTED]>: >Hello Eric, Hi Vitor, > >Well, that's what I needed. My Linux doesn't give me the DEB nor RPM > generators (NSIS also doesn't exists in my environment, but I knew that in > advance). So, my Linux environment probably l

Re: [CMake] re-config on make all

2008-08-27 Thread Eric Noulard
2008/8/27 Vandenbroucke Sander <[EMAIL PROTECTED]>: > Hi, > > Sometimes CMake re-configures my build tree when running make. > Unfortunately CMake uses wrong options, I normally set those on the > command line. This forces me to re-config & rebuild my entire source > tree. This is a bit annoying si

[CMake] CPack RPM update

2008-08-26 Thread Eric Noulard
Hi All, I have update the CPack RPM documentation http://www.cmake.org/Wiki/CMake:CPackPackageGenerators#RPM_.28Unix_Only.29 Be aware that some variables described there are not currently supported by CPack since some patches are pending. (http://public.kitware.com/Bug/view.php?id=7435) Feedback

Re: [CMake] CPack Stripping Debug

2008-08-02 Thread Eric Noulard
2008/8/1 Yuri V. Timenkov <[EMAIL PROTECTED]>: > On Thursday 31 July 2008 22:47:10 Bill Hoffman wrote: >> Paul Hatfield wrote: >> > When compiling a binary with CMAKE_BUILD_TYPE as RelWithDebInfo, I >> > verify that the binary has debug symbols, but when I generate an rpm >> > using Cpack the debug

Re: [CMake] how to make OpenGTL rpm?

2008-07-19 Thread Eric Noulard
2008/7/17 Matthew Woehlke <[EMAIL PROTECTED]>: > Eric Noulard wrote: >> >> 2008/7/15 Matthew Woehlke <[EMAIL PROTECTED]>: >>>>> >>>>> but when I try to build the RPM, it wants to write to /usr (ah, >>>>> shouldn't

Re: [CMake] how to make OpenGTL rpm?

2008-07-16 Thread Eric Noulard
2008/7/15 Matthew Woehlke <[EMAIL PROTECTED]>: >>> I'm trying to build an rpm of OpenGTL, with no success. I added >>> 'set(CPACK_GENERATOR "TGZ;RPM")' and 'include(CPack)' to the >>> CMakeLists.txt, Can you confirm you are using CMake 2.6.0 ? Then how do you invoke CPack? cpack -G RPM? make pack

Re: [CMake] how to make OpenGTL rpm?

2008-07-15 Thread Eric Noulard
2008/7/15 Matthew Woehlke <[EMAIL PROTECTED]>: > I'm trying to build an rpm of OpenGTL, with no success. I added > 'set(CPACK_GENERATOR "TGZ;RPM")' and 'include(CPack)' to the CMakeLists.txt, > but when I try to build the RPM, it wants to write to /usr (ah, shouldn't > rpm building NOT need to inst

Re: [CMake] Rpath removed from installed libraries?

2008-07-09 Thread Eric Noulard
2008/7/9 Georgios Petasis <[EMAIL PROTECTED]>: Hi George, Did you read this http://www.cmake.org/Wiki/CMake_RPATH_handling CMAKE_INSTALL_RPATH_USE_LINK_PATH is not the sole CMake var to setup for proper RPATH setting so may be you miss some. -- Erk __

Re: [CMake] Parameter LANGUAGE in set_source_files_properties

2008-07-07 Thread Eric Noulard
2008/7/7 <[EMAIL PROTECTED]>: > I have a little problem. > I have project's tree and several files with c extension and I want > to compile one file by g++ compiler and not c compiler. > > ./Trunk > | > ->TEST > | > ->test.c > ->test1.c > ->test2.c > ->CMakeLists.txt > | > ->CMakeLists.txt

Re: [CMake] CPack ZIP error with NSIS on WinXP

2008-07-02 Thread Eric Noulard
2008/7/2 Mike Jackson <[EMAIL PROTECTED]>: > That was it. Thank you very much. I owe you one for that. I found some other > bugs in my cmake code because of this. You are welcome :=) > > Last question. It looks like CPack is generating both a .exe and a .zip > installer? Is this normal on window

Re: [CMake] CPack ZIP error with NSIS on WinXP

2008-07-02 Thread Eric NOULARD
Le Tue, 1 Jul 2008 17:57:29 -0400, Mike Jackson <[EMAIL PROTECTED]> a écrit : > I got the ZIP part to work by putting the 7zip.exe on my "path" in > windows xp. > > The last problem is still that CPack is NOT copying my 3rd party > libraries into the installer staging area. If I do a "make in

Re: [CMake] CPack ZIP error with NSIS on WinXP

2008-07-01 Thread Eric Noulard
2008/7/1 Mike Jackson <[EMAIL PROTECTED]>: > I am starting to dive into the CPack packaging system for my projects > and I have some basic questions that the wiki is not answering. > > 1. What "zip" program do I need to install or is recommended on > Windows XP to get the NSIS packager to run corre

Re: [CMake] Missing header files in Visual Studio project

2008-06-25 Thread Eric Noulard
2008/6/25 Martin Apel <[EMAIL PROTECTED]>: > Hi all, > > I am using the CMake generator for Visual Studio 2005 to generate multiple > projects. CMake generates one project file per library, which is fine. When > looking at a generated project inside Visual Studio the > project tree contains "Header

Re: [CMake] CPack system directory issues (PackageManager, RPM)

2008-06-18 Thread Eric Noulard
2008/6/18 Martin Blom <[EMAIL PROTECTED]>: > > Hi, > > I'm using CMake/CPack to package a system daemon, which is installing files > to different system directories like /etc, /usr/bin, /usr/share/doc etc. > > The problem I'm having is that I need to exclude these directories from the > package lis

Re: [CMake] compile options

2008-06-18 Thread Eric Noulard
2008/6/18 Ingrid Kemgoum <[EMAIL PROTECTED]>: > yes i do have read that. > it's why i've tried CMAKE_CXX_FLAGS_. ( for DEBUG and > RELEASE). > but that have no effect on MSVC flags. > (on Unix after fixing the build type first, the CMAKE_CXX_FLAGS_ > works but not on windows!) Ok then it may be a

Re: [CMake] compile options

2008-06-18 Thread Eric Noulard
2008/6/18 Ingrid Kemgoum <[EMAIL PROTECTED]>: > hi, > i'm using cmake 2.6 for MSVC2005 and Linux. > As there is LINK_FLAGS_, is there a way to have different compile > flags for debug and release? > i've tried CMAKE_CXX_FLAGS_, COMPILE_FLAGS_,... this to say > any combinaison but none works. Did y

Re: [CMake] Make with dos paths

2008-06-12 Thread Eric Noulard
2008/6/12 Alin M Elena <[EMAIL PROTECTED]>: > HI Juan > > It may be easier than you think to port on Windows. > > Have a look at these links > > http://unxutils.sourceforge.net/ > > plus > > http://www.microsoft.com/downloads/details.aspx?FamilyID=60deac2b-975b-41e6-9fa0-c2fd6aa6bc89&displaylang=en

Re: [CMake] CPack STGZ install directory

2008-06-08 Thread Eric NOULARD
Le Mon, 9 Jun 2008 03:08:58 +0900, "Daniel Stonier" <[EMAIL PROTECTED]> a écrit : > 2008/6/9 Eric Noulard <[EMAIL PROTECTED]>: > > > 2008/6/8 Daniel Stonier <[EMAIL PROTECTED]>: > > > I've been trying to set the default install director

Re: [CMake] CPack STGZ install directory

2008-06-08 Thread Eric Noulard
2008/6/8 Daniel Stonier <[EMAIL PROTECTED]>: > I've been trying to set the default install directory for cpack with the > stgz generator and a binary package build. However, nothing I do seems to > affect it - it uses a default of the present working directory. I'd like it > to default to /usr/loca

Re: [CMake] Getting the number of processor

2008-06-03 Thread Eric Noulard
2008/6/3 Mathieu Malaterre <[EMAIL PROTECTED]>: > Goal: be able to automate the -j flag option for make. In my ctest > script I would say: > > ... > IF("Unix Makefiles") > GET_NUMBER_OF_PROCESSORS(numproc) > SET(option "-j${numproc}") > ENDIF("Unix Makefiles") > ... If you are using GNU make may

Re: [CMake] Why CPack does not _ALWAYS_ use DESTDIR?

2008-05-13 Thread Eric Noulard
I all, I don't want to waste too much of our time on this since I don't think it is a "must really have feature" but I want to comment a little more. 2008/5/13 Bill Hoffman <[EMAIL PROTECTED]>: > Alexander Neundorf wrote: > We have projects that use it for non-cmake parts of the build. I don't

Re: [CMake] Reading settings from generated files

2008-05-13 Thread Eric Noulard
2008/5/13 Andrea Gualano <[EMAIL PROTECTED]>: > Hello Eric, > > The custom command is something like this (I have removed all other > parameters for simplicity): > > ADD_CUSTOM_COMMAND ( > OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/compiler.opt > COMMAND xs ${CMAKE_CURRENT_SOURCE_DIR}/project.cf

Re: [CMake] Fwd: how to install files outside /usr in rpm?

2008-05-13 Thread Eric Noulard
2008/5/13, Erik Sjölund <[EMAIL PROTECTED]>: > Thanks for the info! > > That works if the installed files are unmodified but what if I would > like to use > > configure_file(InputFile OutputFile > [COPYONLY] [ESCAPE_QUOTES] [EMAIL PROTECTED]) > > to accomodate for e.g. the def

Re: [CMake] Why CPack does not _ALWAYS_ use DESTDIR?

2008-05-13 Thread Eric Noulard
2008/5/13, Bill Hoffman <[EMAIL PROTECTED]>: > > > There is one more issue. CPack is supposed to work with any build system > not just CMake. It might just be a set of hand crafted makefiles, and it > may or may not support DESTDIR. I suppose this could be taken care of by > only making DESTD

Re: [CMake] Why CPack does not _ALWAYS_ use DESTDIR?

2008-05-13 Thread Eric Noulard
2008/5/13, David Cole <[EMAIL PROTECTED]>: > On Windows, where you have DESTDIR=C:/MyDir and an "absolute" install path > of "C:/Program Files/Whatever" > > "C:/MyDir/C:/Program Files/Whatever" is probably going to make somebody a > bit grumpy... Ok right, I see, DESTDIR and ABSOLUTE path shou

Re: [CMake] Why CPack does not _ALWAYS_ use DESTDIR?

2008-05-13 Thread Eric Noulard
2008/5/13, Bill Hoffman <[EMAIL PROTECTED]>: > Eric Noulard wrote: > > > > Because for some projects DESTDIR may not work, and the default has been > set. To change it would break existing projects. Sorry about being pushy but in which kind of "project" DEST

Re: [CMake] Ruby & Python Binding with SWIG in CMake

2008-05-12 Thread Eric Noulard
2008/5/12 David Graf <[EMAIL PROTECTED]>: > > Hello > > I have problems to generate Python and Ruby bindings with SWIG in CMake out > of one SWIG interface file. In the following example, I have a small > interface file and a CMake file that should generate Ruby and Python > bindings. But the Rub

[CMake] Why CPack does not _ALWAYS_ use DESTDIR?

2008-05-12 Thread Eric Noulard
Hi All, I did examine a problem with CPack RPM generator which had been reported by a user: http://public.kitware.com/Bug/view.php?id=7000 The issue concerned file/target installed with absolute path name which leads to the following error: CMake Error at cmake_install.cmake:40 (FILE): file ca

Re: [CMake] Reading settings from generated files

2008-05-12 Thread Eric NOULARD
Le Mon, 12 May 2008 15:48:24 +0200, Andrea Gualano <[EMAIL PROTECTED]> a écrit : > I am cross-compiling for an embedded platform and I have to use a > third-party tool which, depending on a per-project configuration > file, does the following: > - compiles a .o file with some init code > - genera

Re: [CMake] Fwd: how to install files outside /usr in rpm?

2008-05-12 Thread Eric NOULARD
Le Mon, 12 May 2008 15:12:06 +0200, Erik Sjölund <[EMAIL PROTECTED]> a écrit : > On Sat, 2008-05-10 at 13:40 +0200, Eric Noulard wrote: > > 2008/5/7 Timenkov Yuri <[EMAIL PROTECTED]>: > > > > > Also, bunch of problems with building from non-root acc

Re: [CMake] windows paths...

2008-05-12 Thread Eric NOULARD
Le Mon, 12 May 2008 06:37:20 -0700, "Phil Pellouchoud" <[EMAIL PROTECTED]> a écrit : > doesn't work: > > S:\software\fubar\build>type ..\CMakeLists.txt > > FILE( TO_CMAKE_PATH GLOB "S:\software\data\profiles.xml" ) > FILE( TO_CMAKE_PATH GLOB S:\software\data\profiles.xml ) You cannot both "GLOB

Re: [CMake] Fwd: how to install files outside /usr in rpm?

2008-05-10 Thread Eric Noulard
2008/5/7 Timenkov Yuri <[EMAIL PROTECTED]>: > Also, bunch of problems with building from non-root account, can be solved by > setting CPACK_SET_DESTDIR option. You are right and I think we can make this the default behavior for CPäckRPM. I did file a bug+patch for this: http://public.kitware.com

Re: [CMake] is it possible to generate a noarch rpm?

2008-05-10 Thread Eric Noulard
2008/5/7 Eric Noulard <[EMAIL PROTECTED]>: > > Ok nice, I'd rather keep it consistent and directly add > Buildarch: ${CPACK_RPM_PACKAGE_ARCHITECTURE} > > unless we want to differentiate between ARCHITECTURE > and BUILD_ARCHITECTURE. Sorry I was wrong, your patch

Re: [CMake] Retrieving a named argument from a list

2008-05-08 Thread Eric NOULARD
Le Thu, 8 May 2008 10:08:37 -0500, "George Neill" <[EMAIL PROTECTED]> a écrit : > Eric, > > On Thu, May 8, 2008 at 4:37 AM, Eric NOULARD <[EMAIL PROTECTED]> > wrote: > > Just for sake of information when I need such feature > > in an home-brewed

Re: [CMake] Retrieving a named argument from a list

2008-05-08 Thread Eric NOULARD
Le Wed, 7 May 2008 17:33:54 -0500, "George Neill" <[EMAIL PROTECTED]> a écrit : > Alexander, > > > > Below is what I have come up with to fetch named arg from a > > > list. Is there a preferred or built-in way to do this I may > > > have missed? > > > > There is no built-in way, but it would

Re: [CMake] How to read content of a registry entry on WIN32?

2008-05-07 Thread Eric Noulard
2008/5/7, David Cole <[EMAIL PROTECTED]>: > It looks like you are missing a ";" before InstallPath. The ";" delimits the > key name and the value name in this syntax... That was the issue. Thank you now it work. My copy/paste/replace from other module was too fast and I did overlook the ";" :=)

[CMake] How to read content of a registry entry on WIN32?

2008-05-07 Thread Eric Noulard
I want to use the content of a regsitry entry HKEY_LOCAL_MACHINE\SOFTWARE\GnuWin32/InstallPath in order to use it in a FIND_PROGRAM , PATHS argument? find_program(LEX_PROGRAM NAMES flex lex PATHS "[HKEY_LOCAL_MACHINE\\SOFTWARE\\GnuWin32\\InstallPath]/bin

Re: [CMake] is it possible to generate a noarch rpm?

2008-05-07 Thread Eric Noulard
2008/5/7, Erik Sjölund <[EMAIL PROTECTED]>: > Is it possible to generate a noarch rpm with cmake? Current CPack RPM generator do only handle binary RPM. http://www.cmake.org/Wiki/CMake:CPackPackageGenerators#RPM_.28Unix_Only.29 However if you know that the files you are installing are all of type

[CMake] Fwd: how to install files outside /usr in rpm?

2008-05-07 Thread Eric Noulard
Oops forgot to CC the list -- Forwarded message -- From: Eric Noulard <[EMAIL PROTECTED]> Date: 7 mai 2008 14:58 Subject: Re: [CMake] how to install files outside /usr in rpm? To: Erik Sjölund <[EMAIL PROTECTED]> 2008/5/7, Erik Sjölund <[EMAIL PROTECTED]>:

Re: [CMake] patch for supporting multiple toolchain in single source tree

2008-05-05 Thread Eric Noulard
2008/5/5, Yinyin <[EMAIL PROTECTED]>: > > > Hi there, > > The attached file (multi-toolchain.patch.bz2) is a patch I made for > supporting multiple tool-chain in single source tree. There was file attached :=) -- Erk ___ CMake mailing list CMake@cmake

Re: [CMake] CHECK_FUNCTION_EXISTS question

2008-04-22 Thread Eric Noulard
2008/4/22, Mathieu Malaterre <[EMAIL PROTECTED]>: > Hi there, > > If I understand correctly CHECK_FUNCTION_EXISTS is only checking > that the c symbol passed to the CHECK_FUNCTION_EXISTS macro can be > found by the linker, right ? I have a case where the symbol (namely > _snprintf) can be foun

Re: [CMake] Redirect stdout from COMMAND in ADD_CUSTOM_COMMAND (CMake 2.6 RC8)

2008-04-21 Thread Eric Noulard
2008/4/21, Alejandro Morell Garcí­a <[EMAIL PROTECTED]>: > > It's works. Thanks :) > I don't agree using no VERBATIM option, but it wouldn't be the first hack > in computer science, hehehe. Yep looks like a bug unless I miss something. Would you please file a bug for this issue, in order to make

<    11   12   13   14   15   16   17   18   19   >