Re: [CMake] CPack for making .deb files?

2007-07-30 Thread Alexander Neundorf
On Monday 30 July 2007 01:57, Eric Noulard wrote: 2007/7/30, Christian Convey [EMAIL PROTECTED]: Now that I know CPack 2.6 is supposed to produce .deb files, I've decided not to go crazy trying to produce a version of DpkgDeb that I'm satisfied with. Where this information comes from?

Re: [CMake] dependency problem + POST_BUILD events

2007-07-30 Thread Sergei Riaguzov
On 7/30/07, Brandon Van Every [EMAIL PROTECTED] wrote: Can I change my 'all' target in NMakefile in such way that it depends on 'pack_jars' from CMakeLists.txt? Sure. Just add ALL, as per the cmake.html docs. It works! :) Thanx! ___ CMake

Re: [CMake] cmake support Dev C++

2007-07-30 Thread Brandon Van Every
On 7/30/07, Andy Dingfelder [EMAIL PROTECTED] wrote: Personally, my motivation is that I want to use Eclipse on Linux to develop both java and c++ apps, and want them to run on mac, Linux and PC. I have seen multiple discussions in a variety of places that talk about how to do this, some

[CMake] cmake, lex yacc

2007-07-30 Thread Timur Ivanov
Hello! Sorry if it was discussed already but I can't find anything really useful for me. In current project I use lex yacc and Makefile rules looks like: YACC=bison LEX=flex config_yacc.c: config_yacc.y config.h $(YACC) -d -o config_yacc.c config_yacc.y config_lex.c: config_lex.l

Re: [CMake] cmake, lex yacc

2007-07-30 Thread James Bigler
Hi, Timur Ivanov wrote: Hello! Sorry if it was discussed already but I can't find anything really useful for me. There have been several posts about this to the mailing list. Did you search the archives? Here are a couple of posts.

[CMake] set variable in if block

2007-07-30 Thread Juan Sanchez
Hello, I am trying to set a variable in an IF block, but it doesn't appear in the resulting cache or makefile. This is on Linux. Note that when I run cmake, the ${OSNAME} variable is printed, but the ${FOOBAR} variable ends up blank. Thanks, Juan IF (${OSNAME} STREQUAL Linux64) MESSAGE

[CMake] Re: set variable in if block

2007-07-30 Thread Juan Sanchez
My apologies, it turns out there was a syntax error, that was not fatal, and not mentioned in the debug output. Thanks, Juan Juan Sanchez wrote: Hello, I am trying to set a variable in an IF block, but it doesn't appear in the resulting cache or makefile. This is on Linux. Note that

Re: [CMake] cmake, lex yacc

2007-07-30 Thread Tristan Carel
On 7/30/07, Timur Ivanov [EMAIL PROTECTED] wrote: Hello! Sorry if it was discussed already but I can't find anything really useful for me. In current project I use lex yacc and Makefile rules looks like: YACC=bison LEX=flex config_yacc.c: config_yacc.y config.h $(YACC) -d -o

[CMake] Why can't INSTALL(TARGET ...) find an executable that CMake built?

2007-07-30 Thread Christian Convey
I've got a multi-level project. I'm not explicitly setting the EXECUTABLE_OUTPUT_PATH variable, so executables end up in the same directory as whatever CMakeLists.txt file dfines the executable. So I have an executable named MOOSDB, which ends up in the directory Core/MOOSDB/ In

[CMake] Re: Why can't INSTALL(TARGET ...) find an executable that CMake built?

2007-07-30 Thread Christian Convey
Sorry - the command I ran to get the output is this: [EMAIL PROTECTED]:~/src/x$ DESTDIR=/tmp/foozle/ cmake -DCMAKE_INSTALL_COMPONENT=Moos_Core -P cmake_install.cmake But then when I run the following command, I get this output: -- Install configuration: -- Install configuration: --

Re: [CMake] cmake, lex yacc

2007-07-30 Thread Maik Beckmann
Am Montag, 30. Juli 2007 16:46:44 schrieb Timur Ivanov: YACC=bison LEX=flex config_yacc.c: config_yacc.y config.h $(YACC) -d -o config_yacc.c config_yacc.y config_lex.c: config_lex.l config_yacc.c $(LEX) -oconfig_lex.c config_lex.l CMakeLists.txt project(parsing_foo)

[CMake] spammers editing legitimate bugs?

2007-07-30 Thread Matthew Woehlke
Reading this weekend's e-mail, I found that on Saturday one of my bugs (4557) has been spammed, the metainformation replaced with random values and the subject changed to Goodsite (it looks like this may have happened to a lot of bugs). I tried to repair the damage, but when I click 'submit'

Re: [CMake] spammers editing legitimate bugs?

2007-07-30 Thread Bill Hoffman
Matthew Woehlke wrote: Reading this weekend's e-mail, I found that on Saturday one of my bugs (4557) has been spammed, the metainformation replaced with random values and the subject changed to Goodsite (it looks like this may have happened to a lot of bugs). I tried to repair the damage,

Re: [CMake] Re: Why can't INSTALL(TARGET ...) find an executable that CMake built?

2007-07-30 Thread Christian Convey
On 7/30/07, Christian Convey [EMAIL PROTECTED] wrote: Can you try to create a minimal testcase so we can reproduce the problem here ? Alex I've got a pretty minimal test case. The problem installing an executable Foo seems to only occur when Foo's CMakeLists.txt file contains a line

Re: [CMake] Re: Why can't INSTALL(TARGET ...) find an executable that CMake built?

2007-07-30 Thread Alexander Neundorf
On Monday 30 July 2007 15:23, you wrote: On 7/30/07, Christian Convey [EMAIL PROTECTED] wrote: Can you try to create a minimal testcase so we can reproduce the problem here ? Alex I've got a pretty minimal test case. The problem installing an executable Foo seems to only occur

[CMake] Re: Why can't INSTALL(TARGET ...) find an executable that CMake built?e

2007-07-30 Thread Christian Convey
On Monday 30 July 2007 15:23, you wrote: On 7/30/07, Christian Convey christian.convey at gmail.com wrote: Can you try to create a minimal testcase so we can reproduce the problem here ? Alex I've got a pretty minimal test case. The problem installing an executable Foo

[CMake] object file target

2007-07-30 Thread Juan Sanchez
Is there a command for creating a .o target on Linux? If I create my own custom command for creating an object, the .o file is being recompiled every time. I need the dependency scanner to recognize when a .cc file does not need to be compiled into a .o file. This is what I have right now.

Re: [CMake] Re: Why can't INSTALL(TARGET ...) find an executable that CMake built?e

2007-07-30 Thread Alexander Neundorf
On Monday 30 July 2007 15:53, Christian Convey wrote: ... Interesting: When I ran cmake -P ... repeatedly (any number of times), it always fails. This is because by directly running cmake -P nothing gets relinked. When I ran make install repeatedly (any number of times), it always fails.

Re: [CMake] object file target

2007-07-30 Thread Alexander Neundorf
On Monday 30 July 2007 16:24, Juan Sanchez wrote: Is there a command for creating a .o target on Linux? If I create my own custom command for creating an object, the .o file is being recompiled every time. I need the dependency scanner to recognize when a .cc file does not need to be

Re: [CMake] object file target

2007-07-30 Thread Juan Sanchez
It's pretty messy the Makefile I am trying to convert. It is trying to do something like this: g++ -shared obj1.o obj2.o obj3.o staticarchivex.a staticarchivey.a -o sharedlibrary.so The static archives are compiled with -fPIC so dynamic relocation is not a problem. Unfortunately, this only

Re: [CMake] Re: Why can't INSTALL(TARGET ...) find an executable that CMake built?e

2007-07-30 Thread Christian Convey
On 7/30/07, Alexander Neundorf [EMAIL PROTECTED] wrote: When I ran make install repeatedly (any number of times), it always fails. I can't reproduce this. Which version of cmake are you using ? [EMAIL PROTECTED]:~$ cmake --version cmake version 2.4-patch 6 Which steps do I have to

Re: [CMake] Re: Why can't INSTALL(TARGET ...) find an executable that CMake built?e

2007-07-30 Thread Christian Convey
Actually, I just realized that make install is failing because I don't have permissions for installing to the target directory. But I still need the cmake -P cmake_install.cmake approach work. Can you recommend something I can do, other than invoking make install (which will fail), to cause the

[CMake] Release mode only

2007-07-30 Thread Alexandre GOUAILLARD
Hi all, One of my project is using python wrapping and under windows this only works in release mode. I would like my C/C++ example to be compilable in both Debug and Release mode, but the python related project to appear only in release mode. How can I do that using CMAKE? Alex

[CMake] avoid object file recompilation

2007-07-30 Thread Timur Ivanov
Hello I suspect that i am asking very basic question but i am very new to cmake Suppose at top level CMakeLists.txt I have: ADD_EXECUTABLE(test test.cpp ./common/common.cpp) ADD_SUBDIRECTORY(test_1) ADD_SUBDIRECTORY(test_2) Then in test1 directory in CMakeLists.txt ADD_EXECUTABLE(test_1

Re: [CMake] avoid object file recompilation

2007-07-30 Thread Brandon Van Every
On 7/30/07, Timur Ivanov [EMAIL PROTECTED] wrote: The problem is that common.cpp recompiled 3 times but I would like not to do that waste of time. Is it possible ? Yep. Did you look at Chicken yet? Cheers, Brandon Van Every ___ CMake mailing list

Re: [CMake] avoid object file recompilation

2007-07-30 Thread Timur Ivanov
On 7/31/07, Brandon Van Every [EMAIL PROTECTED] wrote: On 7/30/07, Timur Ivanov [EMAIL PROTECTED] wrote: The problem is that common.cpp recompiled 3 times but I would like not to do that waste of time. Is it possible ? Yep. Did you look at Chicken yet? Yes, I did. But it is a little

Re: [CMake] object file target

2007-07-30 Thread Juan Sanchez
Did you try to make it straight-forward without any tweaking around?: add_library (staticarchivex STATIC ...) add_library (staticarchivey STATIC ...) add_library (sharedlibrary SHARED obj1.c obj2.c obj3.c) target_link_libraries(sharedlibrary staticarchivex staticarchivey) Any reason why

Re: [CMake] object file target

2007-07-30 Thread Andreas Pakulat
On 30.07.07 16:39:04, Juan Sanchez wrote: Did you try to make it straight-forward without any tweaking around?: add_library (staticarchivex STATIC ...) add_library (staticarchivey STATIC ...) add_library (sharedlibrary SHARED obj1.c obj2.c obj3.c) target_link_libraries(sharedlibrary

Re: [CMake] object file target

2007-07-30 Thread Hendrik Sattler
Am Montag 30 Juli 2007 23:39 schrieb Juan Sanchez: Did you try to make it straight-forward without any tweaking around?: add_library (staticarchivex STATIC ...) add_library (staticarchivey STATIC ...) add_library (sharedlibrary SHARED obj1.c obj2.c obj3.c)

Re: [CMake] Re: Why can't INSTALL(TARGET ...) find an executable that CMake built?e

2007-07-30 Thread Christian Convey
On 7/30/07, Alexander Neundorf [EMAIL PROTECTED] wrote: On Monday 30 July 2007 16:54, Christian Convey wrote: Actually, I just realized that make install is failing because I don't have permissions for installing to the target directory. But I still need the cmake -P cmake_install.cmake

Re: [CMake] avoid object file recompilation

2007-07-30 Thread Brandon Van Every
On 7/30/07, Timur Ivanov [EMAIL PROTECTED] wrote: On 7/31/07, Brandon Van Every [EMAIL PROTECTED] wrote: On 7/30/07, Timur Ivanov [EMAIL PROTECTED] wrote: The problem is that common.cpp recompiled 3 times but I would like not to do that waste of time. Is it possible ? Yep. Did you

Re: [CMake] cmake support Dev C++

2007-07-30 Thread Andy Dingfelder
Brandon (and everyone else reading this), I fear you misunderstood something from my last message, when you said CMake's level of Java support is a strategic risk. Eclipse isn't just a cross-platform crowd, it's a cross-platform heavily Java crowd. What I meant was that we need as good as

Re: [CMake] cmake support Dev C++

2007-07-30 Thread Brandon Van Every
On 7/30/07, Andy Dingfelder [EMAIL PROTECTED] wrote: Brandon (and everyone else reading this), I fear you misunderstood something from my last message, when you said CMake's level of Java support is a strategic risk. Eclipse isn't just a cross-platform crowd, it's a cross-platform heavily

Re: [CMake] object file target

2007-07-30 Thread Juan Sanchez
Thanks for the make VERBOSE=1. I was flying blind before that since it wasn't on the man page. That is great that the add_library it works, even when one of the static archives is external project. All I need to do now is figure our how to send --whole-archive to the linker for each of the

Re: [CMake] cmake support Eclipse CDT

2007-07-30 Thread Brandon Van Every
On 7/30/07, Andreas Pakulat [EMAIL PROTECTED] wrote: Of course CDT still uses the java-written eclipse platform sdk, but it doesn't have anything else to do with Java. So you're writing a plugin in Java to integrate CMake with Eclipse. Well, don't you think you should use CMake to build the

Re: [CMake] object file target

2007-07-30 Thread Brandon Van Every
On 7/30/07, Juan Sanchez [EMAIL PROTECTED] wrote: Thanks for the make VERBOSE=1. I was flying blind before that since it wasn't on the man page. It wasn't on the man page of your version of Make? Remember, CMake generates native build systems. You have to know your way around CMake, *and*

Re: [CMake] object file target

2007-07-30 Thread Hendrik Sattler
Am Dienstag 31 Juli 2007 00:16 schrieb Juan Sanchez: Thanks for the make VERBOSE=1. I was flying blind before that since it wasn't on the man page. That is great that the add_library it works, even when one of the static archives is external project. All I need to do now is figure our how

Re: [CMake] object file target

2007-07-30 Thread Juan Sanchez
Thanks everyone for their help. I'm evaluating cmake for my group and it appears that cmake meets many of the needs that we have. Regards, Juan Hendrik Sattler wrote: Am Dienstag 31 Juli 2007 00:16 schrieb Juan Sanchez: Thanks for the make VERBOSE=1. I was flying blind before that since it

Re: [CMake] cmake support Dev C++

2007-07-30 Thread Andreas Pakulat
On 30.07.07 18:08:37, Brandon Van Every wrote: On 7/30/07, Andy Dingfelder [EMAIL PROTECTED] wrote: Brandon (and everyone else reading this), I fear you misunderstood something from my last message, when you said CMake's level of Java support is a strategic risk. Eclipse isn't just a

Re: [CMake] object file target

2007-07-30 Thread Juan Sanchez
I didn't think to look on the make man page, since almost every gnu make system I dealt with had the verbose information by default. Doing a man make reveals nothing about VERBOSE=1 since that is specific to cmake, and doesn't have to do anything with the native build system. make VERBOSE=1

Re: [CMake] cmake support Eclipse

2007-07-30 Thread Brandon Van Every
On 7/30/07, Andy Dingfelder [EMAIL PROTECTED] wrote: You are correct in your thoughts that the individual who writes a cmake plugin would need to know java. Yes as you point out there is always a risk that perhaps cmake will not be up to the task of large scale cross platform development and

Re: [CMake] object file target

2007-07-30 Thread Brandon Van Every
On 7/30/07, Juan Sanchez [EMAIL PROTECTED] wrote: I didn't think to look on the make man page, since almost every gnu make system I dealt with had the verbose information by default. Doing a man make reveals nothing about VERBOSE=1 since that is specific to cmake, No I'm googling and it's

Re: [CMake] cmake support Eclipse

2007-07-30 Thread Andy Dingfelder
What's a non-trivial Java app that's using a CMake build? Dart2 server perhaps? I don't know any java apps that are built using cmake if thats what you mean. Building java apps it typically done using Maven or Ant, and I see no need to re-invent the wheel and use cmake to do that. All cmake

Re: [CMake] cmake support Eclipse

2007-07-30 Thread Andreas Pakulat
On 31.07.07 12:12:17, Andy Dingfelder wrote: My vision for a cmake plugin would be as an administrative tool that eases the creation of the CMakeLists.txt file and the running of ccmake. Basically, there would be a GUI screen or wizard that would ask questions such as what OS you want to

[CMake] Recap of some steps for making Debian files

2007-07-30 Thread Christian Convey
Some good ideas and some misconceptions have been thrown around as I've tried to use CMake to produce Debian packages. Here's a consolidation of what I think are the major lessons, in case anyone else has to do this too. The notes below do *not* completely describe how to build Debian packages

Re: [CMake] object file target

2007-07-30 Thread Bill Hoffman
Brandon Van Every wrote: On 7/30/07, Juan Sanchez [EMAIL PROTECTED] wrote: I didn't think to look on the make man page, since almost every gnu make system I dealt with had the verbose information by default. Doing a man make reveals nothing about VERBOSE=1 since that is specific to cmake,

Re: [CMake] cmake support Eclipse

2007-07-30 Thread Brandon Van Every
On 7/30/07, Andy Dingfelder [EMAIL PROTECTED] wrote: What's a non-trivial Java app that's using a CMake build? Dart2 server perhaps? I don't know any java apps that are built using cmake if thats what you mean. Looks like Dart2 is an Ant project. VTK has a Java wrapper but it doesn't use

Re: [CMake] object file target

2007-07-30 Thread Brandon Van Every
On 7/30/07, Bill Hoffman [EMAIL PROTECTED] wrote: Brandon Van Every wrote: On 7/30/07, Juan Sanchez [EMAIL PROTECTED] wrote: I didn't think to look on the make man page, since almost every gnu make system I dealt with had the verbose information by default. Doing a man make reveals

Re: [CMake] object file target

2007-07-30 Thread Juan E. Sanchez
Hi Brandon, By default, gnu make will always print the command to execute, as well as its output. Typically, the command to be executed is muted by prefixing an @. For example: @echo Built target PerlLib As for all of the other commands, apparently they used this trick: # Suppress

Re: [CMake] avoid object file recompilation

2007-07-30 Thread gga
Timur Ivanov wrote: The problem is that common.cpp recompiled 3 times but I would like not to do that waste of time. Is it possible ? No and Yes. No, cmake in general does not allow to do it easily or reliably. But your OS does. Make common.cpp into either a static or dynamic library and

[CMake] Eclipse CMake Generator - Pre-Alpha version

2007-07-30 Thread Miguel A. Figueroa-Villanueva
Hello Everyone, Recently there has been discussion on the list about the Eclipse IDE (or whatever it is; platform maybe ;) ) and CMake. http://www.cmake.org/pipermail/cmake/2007-July/015294.html http://www.cmake.org/pipermail/cmake/2007-July/015434.html So, I don't know much about Eclipse

[CMake] How to link with MFC libraries?

2007-07-30 Thread Prashanth Udupa
Hi, We have a project where we are generating about 12-15 targets. Of these targets some depend on VTK, some on other external libraries. We have managed to author CMakeLists.txt for VTK and the external libraries, except for MFC and .Net targets. Any clues how we can author CMakeLists.txt to

Re: [CMake] dependency problem + POST_BUILD events

2007-07-30 Thread Sergei Riaguzov
On 7/25/07, Brandon Van Every [EMAIL PROTECTED] wrote: 2Brandon: sorry for private e-mails, I have pressed the wrong button, they should have gone here. My bad. Can this be solved somehow? What I want is my POST_BUILD event zipping my DLL be called in case the DLL produced by add_library