Re: [CMake] CMake and Lua

2008-02-25 Thread pepone . onrez
I have testing CMake as my build system for medium sized proyects and i view that change to a tiny scripting instead of CMake macros can be good. For example in my project. i need stuff for compile other things that are not out of the box supported by CMake, for example antltr files for generate

Re: [CMake] Cmake 2.4.8 dependencies

2008-02-20 Thread pepone . onrez
On Wed, Feb 20, 2008 at 7:42 PM, Alexander Neundorf <[EMAIL PROTECTED]> wrote: >Do you mean you have to install xmlrpc ? At least using the gentoo ebuild you need to have xmlrpc with curl or libwww enabled before you can emerge cmake 2.4.8 in cmake-2.4.6 this isn't necessary. maybe the error is o

Re: [CMake] Cmake 2.4.8 dependencies

2008-02-20 Thread pepone . onrez
Force us to depend in xml-rpc is a bad thing tm. I think most users never needs this feature. But in the way that is used i'm force to install it in any way. In a better design i don't need to pay for features i wan to use. I think this kind of things must be added as extra modules for not bload t

Re: [CMake] GLOB segmentation fault

2008-02-20 Thread pepone . onrez
On Tue, Feb 19, 2008 at 9:49 PM, Alexander Neundorf <[EMAIL PROTECTED]> wrote: >Yes, crashes with 2.4.6, works with cvs. >Can you please check with 2.4.8 ? I updated to 2.4.8 crash still reproducible here is the output [EMAIL PROTECTED] ~/kk/cmake-glob-bug/build $ cmake --version cmake version 2.

[CMake] Cmake 2.4.8 dependencies

2008-02-20 Thread pepone . onrez
Hi Why CMake-2.4.8 requires xml-rpc package? Can any body explains why this package is needed to build CMake. I can view the reason for this depency inside CMake, but when installing CMake from gentoo portage it require xml-rpc to be instaled with curl or libwww enabled. Thanks __

Re: [CMake] GLOB segmentation fault

2008-02-19 Thread pepone . onrez
Your example also works well for me and don't reproduce the bug. I attach a file with my example On Feb 19, 2008 7:24 PM, Alexander Neundorf <[EMAIL PROTECTED]> wrote: > Hi, > > On Tuesday 19 February 2008, pepone.onrez wrote: > > [EMAIL PROTECTED] ~/kk/cmake-glob-bug $ cat CMakeLists.txt > > FI

Re: [CMake] GLOB segmentation fault

2008-02-18 Thread pepone . onrez
[EMAIL PROTECTED] ~/kk/cmake-glob-bug $ cat CMakeLists.txt FILE (GLOB TESTS ./test/ *.cpp) ls -liha test/ total 0 3635635 drwxr-xr-x 3 pepone pepone 72 2008-02-19 04:56 . 998787 drwxr-xr-x 4 pepone pepone 160 2008-02-19 04:52 .. 3635679 drwxr-xr-x 2 pepone pepone 48 2008-02-19 04:56 .svn Prob

[CMake] GLOB segmentation fault

2008-02-17 Thread pepone . onrez
When i add this line to CMakeLists.txt i get a segmentation fault cmake version 2.4-patch 6 The problem seems to appear when the relative path ends with '/' FILE (GLOB TESTS ./test/ *.cpp) ___ CMake mailing list CMake@cmake.org http://www.cmake.org/ma

Re: [CMake] Scripts for handle google/ctemplate

2008-02-04 Thread pepone . onrez
CTemplate is a simple but powerful template language for C++. It emphasizes separating logic from presentation: it is impossible to embed application logic in this template language. http://code.google.com/p/google-ctemplate/ On Feb 4, 2008 8:49 PM, Alexander Neundorf <[EMAIL PROTECTED]> wrote:

Re: [CMake] Check directory exists

2008-01-31 Thread pepone . onrez
Thanks for the tips On Jan 31, 2008 7:25 PM, David Cole <[EMAIL PROTECTED]> wrote: > >From the good old days before IS_DIRECTORY was invented, you can also use > a trailing "/" trick (hack?) with EXISTS to see if a directory exists and is > a directory... > > IF(EXISTS "${maybedir}/") > with a tr

Re: [CMake] Check directory exists

2008-01-31 Thread pepone . onrez
Yes i read this but i want to test if is a directory no a directory or a file > > > > On Jan 31, 2008 7:04 PM, James Bigler <[EMAIL PROTECTED]> wrote: > > > From the man page: > > > > IF(EXISTS file-name) > > IF(EXISTS directory-name) > > > > True if

[CMake] Check directory exists

2008-01-31 Thread pepone . onrez
There is any way for check if a directory exists using CMake ? Thanks ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] Scripts for handle google/ctemplate

2008-01-29 Thread pepone . onrez
Hi I have create and script for search google/ctemplate package source is here http://ydra-cmake.googlecode.com/svn/trunk/cmake/ydra/FindGoogleCtemplate.cmake any comments for improve it are well come. There are also other cmake scripts for use antlr c++ in the same repository. http://ydra-cmake

Re: [CMake] Why SET() not support regular expression ?

2008-01-23 Thread pepone . onrez
Maybe a macro can call cmake for only this part that need to be regenerated, in this way if the macro detects thats a glob has changed it can recreate rules that´s depends upon this GLOB, Only and idea what you think about this? > > > On Jan 23, 2008 6:59 AM, Daniel <[EMAIL PROTECTED]> wrote: > >

Re: [CMake] Re: Custom build step

2008-01-21 Thread pepone . onrez
ate ${GeneratedFiles} that is the output of my second command. The same as when i use 2 ADD_CUSTOM_COMMAND with out ADD_DEPENDENCIES. Thanks in advance any help is appreciated. On Jan 21, 2008 5:14 PM, pepone. onrez <[EMAIL PROTECTED]> wrote: > Hi Brandon thanks for your help > p

Re: [CMake] Re: Custom build step

2008-01-21 Thread pepone . onrez
Hi Brandon thanks for your help problem with ADD_CUSTOM_TARGET is that runs allways even when it generate files are up to date. Quoted From Cmake docs: Adds a target with the given name that executes the given commands. The target has no output file and is ALWAYS CONSIDERED OUT OF DATE even if th

Re: [CMake] Why SET() not support regular expression ?

2008-01-21 Thread pepone . onrez
There isn't any way for GLOB runs every time and view if there is new files in the GLOB? or other way for adding multiple files with a regular expression and get it update when needed? a custom macro can do this? Any other ideas for adding multiple files and get it updated automatically. Thanks

Re: [CMake] Re: Custom build step

2008-01-21 Thread pepone . onrez
I Attach a incorrect file in the last mail, get the file attached to this mail for view the correct example. Thanks cmake-customcommand-test.tar.gz Description: GNU Zip compressed data ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman

Re: [CMake] Re: Custom build step

2008-01-21 Thread pepone . onrez
I create and small test that's reproduce the problem described in this thread Download the cmake-customcommand-test.tar.gz attached to this mail How to run the test. uncompress it with "tar zxvf cmake-customcommand-test.tar.gz" go to the build subdir "cd cmake-customcommand-test/build" type "cma

Re: [CMake] Re: Custom build step

2008-01-19 Thread pepone . onrez
can buid my system with Cmake :) On Jan 19, 2008 8:02 PM, pepone. onrez <[EMAIL PROTECTED]> wrote: > I test various debug messages before my first post here and variable > values seems alright. Now ill try to reproduce the problem in a self > contained example and post here the resu

Re: [CMake] Re: Custom build step

2008-01-19 Thread pepone . onrez
I test various debug messages before my first post here and variable values seems alright. Now ill try to reproduce the problem in a self contained example and post here the results. Thanks for all On Jan 19, 2008 7:15 PM, Brandon Van Every <[EMAIL PROTECTED]> wrote: > I'm going to take a wild g

Re: [CMake] Re: Custom build step

2008-01-19 Thread pepone . onrez
Hi Brandon [EMAIL PROTECTED] ~/proyects/ydra-ipluginservice/build $ grep Moving * -R [EMAIL PROTECTED] ~/proyects/ydra-ipluginservice/build $ I grep -R in the build dir and don't see the keword Moving that i put in the Comment of the second ADD_CUSTOM_COMAND in any of CMake generated files.

Re: [CMake] Re: Custom build step

2008-01-19 Thread pepone . onrez
I know is not a good practice but this library only has generated code, and the generated headers are need for build other applications made by third parties. This is why i prefer to put in sources. I atach here the relevant code for both cases and generated rules. Case 1 - works as expected Case

[CMake] Re: Custom build step

2008-01-19 Thread pepone . onrez
I solve the problem by adding the move step in the same ADD_CUSTOM_COMAND Here is the new code. Any ideas for #BEGIN MACRO ( GENERATE_SLICE2CPP_RULES GENERATED_CPP_LIST GENERATED_HEADER_LIST ) FOREACH( SLICE_SOURCE_BASENAME ${ARGN} ) APPEND( GEN_SLICE_RULES_SLICE_DEPENDS "${SLICE_SO

[CMake] Custom build step

2008-01-19 Thread pepone . onrez
Hello i creating a CMake macro for compile same IDL files. Here is steps i trying to do 1) find all files in ./slice directory that's end with .ice for each .ice files 1.1) run slice2cpp compiler that's generate a .h and .cpp file white the same name as the .ice 1.2) move the .h file to the in

[CMake] Makefile verbose ouput

2007-12-02 Thread pepone . onrez
Hello I whant to view the commands that are running with out of the arguments , there are any options for enable this Thanks ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] Find executable a test it's version

2007-12-02 Thread pepone . onrez
Hello all I'm new cmake user and need to write a module for test if a pacakage exists, In my case i need to check If Ice (Internet Communication Engine | http://www.zeroc.com) is installed, this package is a set of shared libraries, include files, and compilers for slice language. I need to be ab