[CMake] Developing an externally usable API for CMake

2006-07-27 Thread Matt Rogers
Hi, As suggested, I've copied most of CMake's code into the KDevelop 4 codebase for use in the cmake integration. However, I'd really love to have an external library of some sort that I can link against rather than having to keep up with CMake's code. This leads to a few questions I have: 1.

Re: [CMake] Re: cmake-indent.vim

2006-07-27 Thread Andreas Beckermann
On Friday 28 July 2006 01:19, Andrew Maclean wrote: > If you are using Windows, the latest version of Vim (7.0) recognises CMake > files automatically. > > Andrew No, I am not, but that doesn't matter: cmake files are not the problem - that's the point. These files are parsed, even if a file is N

Re: [CMake] cmake-indent.vim

2006-07-27 Thread Andreas Beckermann
On Wednesday 26 July 2006 22:00, Andy Cedilnik wrote: > Hi Andi, Hi > I thought the cmake-indent.vim is only read if it is a CMake file. Can > you propose a fix? Patch would be nice. No, unfortunately I don't know enough about .vim files to create a patch. It might however actually be a debian

[CMake] find_program search order

2006-07-27 Thread Andreas Beckermann
Hi I have a problem with the search order of FIND_PROGRAM in cmake 2.4.2. The docs say: [...] Projects may override this behavior by simply calling the command twice: FIND_PROGRAM( NAMES name PATHS paths NO_DEFAULT_PATH) FIND_PROGRAM( NAMES name) Once one of these calls succee

[CMake] Re: cmake-indent.vim

2006-07-27 Thread Andrew Maclean
If you are using Windows, the latest version of Vim (7.0) recognises CMake files automatically.   Andrew -- ___Andrew J. P. MacleanCentre for Autonomous SystemsThe Rose Street Building J04The University of Sydney  2006  NSWAUSTRALIA Ph: +61 2 9351 3283Fax: +6

Re: [CMake] Problem with circular includes

2006-07-27 Thread Marc-André Laverdière
Hmm... Interesting. I don't see why its making a difference, but it does! Maybe the doc should make the use of ${CMAKE_CURRENT_SOURCE_DIR} more explicit ;) Thanks! SUBDIRS(adapters stdio stdlib string test time wchar) INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}) INCLUDE_DIRECTORIE

Re: [CMake] Problem with circular includes

2006-07-27 Thread Filipe Sousa
Marc-André Laverdière wrote: > Dear CMakers, > > I'm working on an extension to the standard C library and I'm porting to > home-brew makefiles to CMake. Not making much progress so far. > > It looks like one hurdle is that we use stuff like #include "stdio.h", > which contains some extra defin

[CMake] Problem with circular includes

2006-07-27 Thread Marc-André Laverdière
Dear CMakers, I'm working on an extension to the standard C library and I'm porting to home-brew makefiles to CMake. Not making much progress so far. It looks like one hurdle is that we use stuff like #include "stdio.h", which contains some extra definitions and then an include to the real .

Re: [CMake] CMakeSetup broken, fails in the root directory

2006-07-27 Thread William A. Hoffman
At 02:02 PM 7/27/2006, Brandon J. Van Every wrote: >Dataflow wrote: >> >>1. Checked out CMake, in i:/tmp/CMake >>2. Created a 'winbuild' dir inside it: i:/tmp/CMake/winbuild >>3. To 2.4.2, gave source as 'i:/tmp/CMake', build destination as >>'i:/tmp/CMake/winbuild'. >> > >I don't think putting

Re: [CMake] CMakeSetup broken, fails in the root directory

2006-07-27 Thread William A. Hoffman
At 12:02 PM 7/27/2006, Dataflow wrote: >- Original Message - >From: "William A. Hoffman" <[EMAIL PROTECTED]> >To: "Dataflow" <[EMAIL PROTECTED]>; >Sent: Thu, 27 Jul 2006 9:05 PM >Subject: Re: [CMake] CMakeSetup broken, fails in the root directory > > >> At 11:24 AM 7/27/2006, Dataflow wr

Re: [CMake] What combinations must be set for *_LINKER_FLAGS?

2006-07-27 Thread Alan W. Irwin
On 2006-07-27 10:01-0400 Brad King wrote: Alan W. Irwin wrote: One of our PLplot developers with access to Mac OS X ran into the following error message for the shared libraries for that platform: ld: common symbols not allowed with MH_DYLIB output format with the - multi_module option I have

Re: [CMake] CMakeSetup broken, fails in the root directory

2006-07-27 Thread Brandon J. Van Every
Dataflow wrote: 1. Checked out CMake, in i:/tmp/CMake 2. Created a 'winbuild' dir inside it: i:/tmp/CMake/winbuild 3. To 2.4.2, gave source as 'i:/tmp/CMake', build destination as 'i:/tmp/CMake/winbuild'. I don't think putting your build directory as a subdirectory of the source director

Re: [CMake] DevCpp

2006-07-27 Thread Brandon J. Van Every
Luigi Calori wrote: Is DevCpp supported by CMake? in case, are available hints on how to setup a proper environment? DevCpp is simply MinGW. You use a MinGW or MSYS target generator according to your preference. My own MinGW is a DevCpp packaged installation. I have it installed as E:\DevC

[CMake] free VS8 nmake config err

2006-07-27 Thread Dean Inglis
Hi, I'm trying to run CMake 2.4.2 from a command prompt to get an "NMake Makefiles" build config (current cvs VTK) using the free MS VS8 compiler. Cmake keeps coughing up a CMake error: your RC compiler: "CMAKE_RC_COMPILER_FULPATH-NOTFOUND" etc. etc. If I edit my CMakeCache.txt to provide the c

[CMake] DevCpp

2006-07-27 Thread Luigi Calori
Is DevCpp supported by CMake? in case, are available hints on how to setup a proper environment? Thanks in advance. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMakeSetup broken, fails in the root directory

2006-07-27 Thread Dataflow
- Original Message - From: "William A. Hoffman" <[EMAIL PROTECTED]> To: "Dataflow" <[EMAIL PROTECTED]>; Sent: Thu, 27 Jul 2006 9:05 PM Subject: Re: [CMake] CMakeSetup broken, fails in the root directory > At 11:24 AM 7/27/2006, Dataflow wrote: > > > >Sigh ~ Same results with 2.4.2

Re: [CMake] Call multiple Makefile

2006-07-27 Thread William A. Hoffman
At 11:43 AM 7/27/2006, Xavier Larrode wrote: >But i got this error : > CMake Error: Error required internal CMake variable not set, cmake may be not > be built correctly. >Missing variable is: >CMAKE_SIZEOF_VOID_P > >And CMAKE_INSTALL_PREFIX is ok >Any idea ? Try removing the entire build tre

Re: [CMake] Call multiple Makefile

2006-07-27 Thread Filipe Sousa
Xavier Larrode wrote: > Hi and thanks filipe, > > > I tried what you said with a simple example of mine. > 1> on my folder root : > PROJECT(Test) #ProjetctName > # to see command line of gcc > SET(CMAKE_VERBOSE_MAKEFILE 1) > # to add Color on CMake Process > SET(CMAKE_COLOR_MAKEFILE ON) > SET(REP

Re: [CMake] Call multiple Makefile

2006-07-27 Thread Xavier Larrode
Hi and thanks filipe, ADD_SUBDIRECTORY(src/common/share/folder1) ADD_SUBDIRECTORY(...) or SET(REPERTOIRES src/common/share/folder1 ...) FOREACH(folder ${REPERTOIRES}) ADD_SUBDIRECTORY(${folder}) ENDFOREACH(folder) for each one of these directories you have to create a CMakeLists.txt with com

Re: [CMake] make dist?

2006-07-27 Thread Andy Cedilnik
Hi Alan, I will add more in the future: http://www.cmake.org/Wiki/CMake_Packaging_With_CPack Andy Alan W. Irwin wrote: Mr.Prise wrote: Hello, Im new to CMake. I used autools before. Does CMake have similar function to make an archive from the source like autotools has with make dist? I

Re: [CMake] CMakeSetup broken, fails in the root directory

2006-07-27 Thread William A. Hoffman
At 11:24 AM 7/27/2006, Dataflow wrote: >Sigh ~ Same results with 2.4.2 >Any other hints? Should I check anything manually? I am not sure what are the paths you are using? Post the whole process of what you are doing to create the build, and any warnings or errors encountered during the proc

Re: [CMake] CMakeSetup broken, fails in the root directory

2006-07-27 Thread Dataflow
- Original Message - From: "William A. Hoffman" <[EMAIL PROTECTED]> To: "Dataflow" <[EMAIL PROTECTED]>; Sent: Thu, 27 Jul 2006 8:18 PM Subject: Re: [CMake] CMakeSetup broken, fails in the root directory > At 10:41 AM 7/27/2006, Dataflow wrote: > >Hi, > >Checked out CMake sources from th

Re: [CMake] CMakeSetup broken, fails in the root directory

2006-07-27 Thread William A. Hoffman
At 10:41 AM 7/27/2006, Dataflow wrote: >Hi, >Checked out CMake sources from the CVS at on 27 Jul 06 and tried to >configure them using 2.4-beta 1 for VC6. (This is a clean set of sources.) >Got the following error: > >Can not find: builddir/CMakeTmp/src.c >while performing Test VA_LIST_IS_NOT_ARRAY

Re: [CMake] CMakeSetup broken, fails in the root directory

2006-07-27 Thread Dataflow
Hi, Checked out CMake sources from the CVS at on 27 Jul 06 and tried to configure them using 2.4-beta 1 for VC6. (This is a clean set of sources.) Got the following error: Can not find: builddir/CMakeTmp/src.c while performing Test VA_LIST_IS_NOT_ARRAY_DEFINE (where 'builddir' is the complete pat

Re: [CMake] What combinations must be set for *_LINKER_FLAGS?

2006-07-27 Thread Brad King
Alan W. Irwin wrote: > One of our PLplot developers with access to Mac OS X ran into the following > error message for the shared libraries for that platform: > > ld: common symbols not allowed with MH_DYLIB output format with the - > multi_module option > > I have no idea what constraints there

Re: [CMake] Debugging ccmake on Xcode 2.3 with GDB

2006-07-27 Thread William A. Hoffman
At 06:32 AM 7/27/2006, Sylvain Benner wrote: >Hello, > >I have some difficulties to debug ccmake (last CVS version) on Mac OS X Tiger >with Xcode 2.3 and GDB. >I setup my executable with the correct cwd and added 3 arguments to the list: >-G Xcode >Path_to_the_CMakelists.txt_Folder > >When I lau

[CMake] Debugging ccmake on Xcode 2.3 with GDB

2006-07-27 Thread Sylvain Benner
Hello,   I have some difficulties to debug ccmake (last CVS version) on Mac OS X Tiger with Xcode 2.3 and GDB. I setup my executable with the correct cwd and added 3 arguments to the list: -G Xcode Path_to_the_CMakelists.txt_Folder   When I launch GDB with run I've got this output:   (gdb) s

Re: [CMake] Call multiple Makefile

2006-07-27 Thread Filipe Sousa
Xavier Larrode wrote: > Hi all, > I have a general Makefile wich is doing that : > > REPERTOIRES = \ > $(VAR)/src/common/share/folder1 \ > $(VAR)/src/common/share/folder2 \ > [...] > > normal : > for i in $(REPERTOIRES); do \ > echo "=="; \ > ech

[CMake] Re: Make dist?

2006-07-27 Thread Mr . Prise
Thank you for the link. I knew CMake can do this, but dont know how ;-) It would be great 7-Zip support too. ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] Call multiple Makefile

2006-07-27 Thread Xavier Larrode
Hi all, I have a general Makefile wich is doing that : REPERTOIRES = \ $(VAR)/src/common/share/folder1 \ $(VAR)/src/common/share/folder2 \ [...] normal : for i in $(REPERTOIRES); do \ echo "=="; \ echo "Compiling $$i..."; \ echo "=

Re: [CMake] make dist?

2006-07-27 Thread Filipe Sousa
Alan W. Irwin wrote: > > I struggled with this question myself two weeks ago until a google search > found that most helpful thread that you referenced. > > Aside from that thread I could find no information, and the usual high > standards of the CMake documentation fall down in this case. I not