[CMake] Building linux kernel module with Cmake

2007-11-01 Thread Suhas Jain
Hi All, I am a newbie with cmake and am trying to build a Linux device driver with this utility. I have tried this utility with building applications. It works fine. But, I am not able to compile the kernel modules. I have a makefile for this driver which uses KBuild for compiling the driver

Re: [CMake] disabling the cache

2007-11-01 Thread Alexander Neundorf
On Wednesday 31 October 2007, Jesper Eskilson wrote: Bill Hoffman wrote: For this case, you could have something like this: # if SOME_PROGRAM has a value but the program has been moved # or removed from the system, then clear the cache entry # so that find_program will try again.

Re: [CMake] disabling the cache

2007-11-01 Thread Jesper Eskilson
Andreas Pakulat wrote: On Mittwoch, 31. Oktober 2007, Jesper Eskilson wrote: BTW: Are there any plans of fixing the broken regeneration for Visual Studio? Or at least documenting it as known problem? As it is now, the project files are regenerated but not reloaded, and there is no feedback

RE: [CMake] Building linux kernel module with Cmake

2007-11-01 Thread Suhas Jain
Thanks for you reply Hendrik Even I know that Kbuild is a very simple procedure to do so. But I have a source tree which has applications, drivers and other modules for different OS as well as hardware architectures and I want to compile all these folders from a single top level directory. All

Re: [CMake] Building linux kernel module with Cmake

2007-11-01 Thread Hendrik Sattler
Am Donnerstag 01 November 2007 schrieb Suhas Jain: I am a newbie with cmake and am trying to build a Linux device driver with this utility. I have tried this utility with building applications. It works fine. But, I am not able to compile the kernel modules. I have a makefile for this

[CMake] Make clean - doesn't clean dependencies.

2007-11-01 Thread Josef Karthauser
It doesn't appear that a 'make clean' in a subdirectory of the build tree cleans any of the dependencies. Does anyone know of a way that it can be persuaded to? Joe ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] disabling the cache

2007-11-01 Thread Andreas Pakulat
On 01.11.07 10:49:12, Jesper Eskilson wrote: In any case, the automatic regeneration of project files *does* *not* *work*, and my question was simply if there was a plan for either doing something about it (such as disabling it per default, which would be a sensible thing to do, IMHO), and/or

[CMake] Link directories order

2007-11-01 Thread Renaud Detry
Hello, I'm having trouble with cmake LINK_DIRECTORIES order. I understand cmake smart-orders link directory flags. However, flags coming from the shell env LDFLAGS don't seem to be taken into account in this smart sort. Is this a feature or a bug? To illustrate the issue, I slightly modified

[CMake] CPPFLAGS

2007-11-01 Thread Renaud Detry
Hello, CMake takes many variables from the shell env (CC, CXX, CFLAGS, CXXFLAGS, LDFLAGS, ...) but CPPFLAGS seems to be ignored, forcing -Iinclude dir in CFLAGS/CXXFLAGS. I'm using cmake-2.4.7-Darwin-universal. Is this intentional? Thanks, Renaud.

[CMake] CONFIGURE_FILE list substitutions

2007-11-01 Thread Thomas Sondergaard
Hello, My package has a package.pc.in pkg-config template that is used to create package.pc using CONFIGURE_FILE. In the pc.in file I have this line: Requires: @PKG_DEPS@ and in my CMakeLists.txt I have SET(PGK_DEPS boost libxml) The problem is that the output becomes Requires:

Re: [CMake] disabling the cache

2007-11-01 Thread Jesper Eskilson
Andreas Pakulat wrote: On 01.11.07 10:49:12, Jesper Eskilson wrote: In any case, the automatic regeneration of project files *does* *not* *work*, and my question was simply if there was a plan for either doing something about it (such as disabling it per default, which would be a sensible

Re: [CMake] disabling the cache

2007-11-01 Thread James Bigler
On Nov 1, 2007, at 7:29 AM, Jesper Eskilson wrote: Andreas Pakulat wrote: On 01.11.07 10:49:12, Jesper Eskilson wrote: In any case, the automatic regeneration of project files *does* *not* *work*, and my question was simply if there was a plan for either doing something about it (such as

Fixed : RE: [CMake] Make clean - doesn't clean dependencies.

2007-11-01 Thread Josef Karthauser
Sent: 01 November 2007 10:59 It doesn't appear that a 'make clean' in a subdirectory of the build tree cleans any of the dependencies. Does anyone know of a way that it can be persuaded to? I've fixed it, see the attached patch. (I'll also submit this as a bug). Joe fix_clean.patch

[CMake] Universal Binary Support on OS X 10.4

2007-11-01 Thread Mike Jackson
I am on a MacBook Pro and need to compile for PPC. I launch ccmake and set CMAKE_OSX_ARCHITECTURES to ppc. I then generate and then run make VERBOSE=1. What gets produced is still an i386 binary though. If I manually put in -arch ppc into both the c and c++ compile flags then I get a

[CMake] Default Debug format for OS X 10.5 Leopard

2007-11-01 Thread Mike Jackson
Apple has moved to using dwarf as its default debugging format. Is there support going into cmake to set this as the default debug argument string? -- Mike Jackson imikejackson gmail * com ___ CMake mailing list CMake@cmake.org

[CMake] Copyonly symlink ?

2007-11-01 Thread Félix C. Morency
Hi, With the CONFIGURE_FILES( ... COPYONLY ) command, is it possible to make a symlink to the file on system that supports symlink and really copy the file on system that doesn't support symlink ? If not, is there another way to do this ? Regards, Félix C. Morency

Re: [CMake] Copyonly symlink ?

2007-11-01 Thread Brandon Van Every
On Nov 1, 2007 11:31 AM, Félix C. Morency [EMAIL PROTECTED] wrote: Hi, With the CONFIGURE_FILES( ... COPYONLY ) command, is it possible to make a symlink to the file on system that supports symlink and really copy the file on system that doesn't support symlink ? I don't think so. If not,

Re: [CMake] disabling the cache

2007-11-01 Thread Miguel A. Figueroa-Villanueva
On 11/1/07, Jesper Eskilson [EMAIL PROTECTED] wrote: KSpam wrote: If you run the ZERO_CHECK target, CMake will generate the new project files without building everything. Following ZERO_CHECK, Visual Studio would have to reload the projects, and then you could build like normal. This

re: [CMake] disabling the cache

2007-11-01 Thread Brandon Van Every
On Nov 1, 2007 2:27 PM, Miguel A. Figueroa-Villanueva [EMAIL PROTECTED] wrote: On 11/1/07, Jesper Eskilson [EMAIL PROTECTED] wrote: KSpam wrote: If you run the ZERO_CHECK target, CMake will generate the new project files without building everything. Following ZERO_CHECK, Visual

Re: [CMake] Building linux kernel module with Cmake

2007-11-01 Thread Brandon Van Every
On Nov 1, 2007 5:48 AM, Suhas Jain [EMAIL PROTECTED] wrote: Thanks for you reply Hendrik Even I know that Kbuild is a very simple procedure to do so. But I have a source tree which has applications, drivers and other modules for different OS as well as hardware architectures and I want to

Re: [CMake] Default Debug format for OS X 10.5 Leopard

2007-11-01 Thread Sean McBride
On 11/1/07 10:39 AM, Mike Jackson said: Apple has moved to using dwarf as its default debugging format. Is there support going into cmake to set this as the default debug argument string? By default CMake sets CMAKE_C_FLAGS_DEBUG to include -g. On 10.4, - g means 'stabs' and you have to pass

Re: [CMake] Make clean - doesn't clean dependencies.

2007-11-01 Thread Gonzalo Garramuño
Josef Karthauser wrote: It doesn’t appear that a ‘make clean’ in a subdirectory of the build tree cleans any of the dependencies. Does anyone know of a way that it can be persuaded to? make depend For more info, cmake creates: make help -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400 -

[CMake] regex ^ does not anchor against the original string

2007-11-01 Thread Brandon Van Every
^ doesn't anchor against the original input string. It anchors against the string as it is processed! If replacements cause the string to have a new beginning, it anchors against the new beginning. I want to say that's a bug. Do other regex gurus agree, or have I just not gone up the learning

[CMake] improve the CMake language?

2007-11-01 Thread Brandon Van Every
Recently I've been doing a non-trivial amount of programming in CMake script. When I started my current project I thought it would be a quick throwaway, but it has ballooned into a substantial body of code with a call structure about 3 routines deep. I've started to feel the pinch of MACRO

Re: [CMake] improve the CMake language?

2007-11-01 Thread Bill Hoffman
Brandon Van Every wrote: My concern is that if the status quo is maintained, CMake script will always be ugly to program with. This will put it at a disadvantage compared to build systems written in Python, Ruby, or Perl. I'm not just talking about SCons and so forth. I'm talking about a

[CMake] building an OSX app release

2007-11-01 Thread Peter Crowley
hello all, I've read a couple of recent posts that skirted around my issue, but didn't see any answers. I've been a programmer in the past, but I'm kind of new to the buildmiester role, so please forgive my ignorance. The situation I'm in is that I have installed and compiled several

RE: [CMake] improve the CMake language?

2007-11-01 Thread Sanchez, Juan
Tcl is a nice language for implementing declarative commands. It can be easily built on about every platform out there, and the language rules are well known. It is small, and very easy to compile a standalone Tcl based interpreter with the CMake commands built in. The user would not need to

Re: [CMake] building an OSX app release

2007-11-01 Thread Alan W. Irwin
On 2007-11-01 20:17-0500 Peter Crowley wrote: How can I tell cmake to take the libraries and include them in the build app? Does it matter if it is statically or dynamically linked? Is this as simple as copying the dylib over, or am I missing something? If you have attempted to do something

Re: [CMake] improve the CMake language?

2007-11-01 Thread Bill Hoffman
Sanchez, Juan wrote: Tcl is a nice language for implementing declarative commands. It can be easily built on about every platform out there, and the language rules are well known. It is small, and very easy to compile a standalone Tcl based interpreter with the CMake commands built in. The

Re: [CMake] improve the CMake language?

2007-11-01 Thread Bill Hoffman
Sanchez, Juan wrote: Tcl is a nice language for implementing declarative commands. It can be easily built on about every platform out there, and the language rules are well known. It is small, and very easy to compile a standalone Tcl based interpreter with the CMake commands built in. The

[CMake] Perl Compatible Regular Expressions. Why bother?

2007-11-01 Thread Brandon Van Every
Ok, having been informed of the ultimate CMake language strategy... 2 months ago, a fellow and I talked about possibly putting PCRE into CMake. I looked at the PCRE library the other day. I was surprised at how vast it was. Tons of capabilities. A handful of customizable compilation defaults,

Re: [CMake] building an OSX app release

2007-11-01 Thread Mike Jackson
On Nov 1, 2007, at 9:52 PM, Alan W. Irwin wrote: On 2007-11-01 20:17-0500 Peter Crowley wrote: How can I tell cmake to take the libraries and include them in the build app? Does it matter if it is statically or dynamically linked? Is this as simple as copying the dylib over, or am I

RE: [CMake] improve the CMake language?

2007-11-01 Thread Sanchez, Juan
Hello Bill, add_library(foo SHARED foo.cxx) won't work. Parenthesis are not part of the standard syntax, and worth getting Tcl to understand them. Tcl is a simple language, and is well understood. It has already been ported to about every platform out there. You don't need QT or wxWidgets,