Re: [CMake] Small, realistic Cpack example

2008-09-17 Thread Boudewijn Rempt
On Tuesday 16 September 2008, Mike Jackson wrote: After some tinkering this afternoon with a small cmake project on OS X (based on Qt4) I was able to use the latest bits from CMake CVS to create a stand alone OS X bundle that correctly runs install_name_tool on the .app bundle and copies

Re: [CMake] Small, realistic Cpack example

2008-09-17 Thread Boudewijn Rempt
On Tuesday 16 September 2008, you wrote: Hate to say it, but I've gone through this with several projects now, and there seems to be an irreducible lower-limit on complexity. Yes... That seems to be true. Wherever I look, people are always doing this kind of thing slightly differently. You

Re: [CMake] Weird output

2008-09-17 Thread Jesper Eskilson
Timenkov Yuri wrote: On Tue, Sep 16, 2008 at 11:08 AM, Jesper Eskilson [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, I get several weird printouts in our build-server logs which I don't get when I'm building from an (interactive) terminal: Dependee

Re: [CMake] Weird output

2008-09-17 Thread Timenkov Yuri
On Wed, Sep 17, 2008 at 10:59 AM, Jesper Eskilson [EMAIL PROTECTED]wrote: Timenkov Yuri wrote: On Tue, Sep 16, 2008 at 11:08 AM, Jesper Eskilson [EMAIL PROTECTED]mailto: [EMAIL PROTECTED] wrote: Hi all, I get several weird printouts in our build-server logs which I don't get

Re: [CMake] Weird output

2008-09-17 Thread Jesper Eskilson
Timenkov Yuri wrote: Anyway, the printout is inside a if(this-Verbose) { ... }, so presumable it is something which can be switched on/off. And it seems not a problem, because CMake just tells why it regenerates dependencies. But it clutters my make output. I like my make output to

[CMake] Lint Integration

2008-09-17 Thread Matthias . Goesswein
Hi, I´d like to integrate PC-Lint (www.gimpel.com, a source code checker for C/C++) to my cmake build system (Cross-Compile for an embedded Power PC with WindRiver Compiler, which is running on Windows). My first idea was to add a command to CMAKE_C_COMPILE_OBJECT, but I don't know how to

[CMake] CMakeFiles/cmTryCompileExec.dir/usr/share/cmake-2.4/Modules/TestBigEndian.o : Permission denied

2008-09-17 Thread Mathieu Malaterre
I am getting this weird behavior on my linux debian stable: ... CMake Error: TestBigEndian Failed to run with output: /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build make[1]: Entering directory

Re: [CMake] CMakeFiles/cmTryCompileExec.dir/usr/share/cmake-2.4/Modules/TestBigEndian.o : Permission denied

2008-09-17 Thread Mathieu Malaterre
Weird... this does not happen anymore with cmake 2.6 It would be nice if I had a solution for the default cmake installation tough. Thanks! On Wed, Sep 17, 2008 at 11:27 AM, Mathieu Malaterre [EMAIL PROTECTED] wrote: I am getting this weird behavior on my linux debian stable: ... CMake

[CMake] find_package vs. include

2008-09-17 Thread Robert Haines
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 using one in preference to the other? Thanks,

Re: [CMake] CMakeFiles/cmTryCompileExec.dir/usr/share/cmake-2.4/Modules/TestBigEndian.o : Permission denied

2008-09-17 Thread Mathieu Malaterre
Not sure this will ever happen to anyone again, but this partition was mounted with special option: /dev/mapper/lvm-storage /backupext3 noatime,nodev,nosuid,noexec 0 2 not a cmake bug thus. On Wed, Sep 17, 2008 at 11:35 AM, Mathieu Malaterre [EMAIL PROTECTED] wrote: Weird... this

[CMake] Customizing target locations with VS generator

2008-09-17 Thread cyril_wobow
Hello I set the CMAKE_ARCHIVE_OUTPUT_DIRECTORY, CMAKE_LIBRARY_OUTPUT_DIRECTORY and CMAKE_RUNTIME_OUTPUT_DIRECTORY to, say, ${CMAKE_SOURCE_DIR}/bin . I also set suffixes so any target in any build configuration has a unique name within my build tree. CMake's behavior with Visual Studio

Re: [CMake] cmake 2.5 with windows mobile

2008-09-17 Thread Andreas Pokorny
Hi, I am about to do that right now. I just discovered that there is a tool called dumpbim with the flag /DIRECTIVES and it provides output like: Linker Directives - /manifestdependency:type='win32' name='Microsoft.VC80.DebugCRT' version='8.0.50727.762'

Re: [CMake] cmake 2.5 with windows mobile

2008-09-17 Thread Andreas Pokorny
Hello, Small correction, the magic switch ist /HEADERS, and I came up with EXECUTE_PROCESS(COMMAND ${CMAKE_C_COMPILER} /c /nologo test.c ) EXECUTE_PROCESS(COMMAND dumpbin /HEADERS test.obj OUTPUT_VARIABLE TEST_HEADERINFO ) STRING(REGEX MATCH machine \\(([^\\)]*)\\) RESULT ${TEST_HEADERINFO})

[CMake] cannot invoke project() from a separate cmake file

2008-09-17 Thread cyril_wobow
Hello I am confronted to the following problem: It seems that the PROJECT command cannot be invoked in a macro that is located in a cmake file that is included by my main CMakeLists.txt file. This issue has been encountered a few years ago:

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 using

Re: [CMake] find_package vs. include

2008-09-17 Thread Robert Haines
You should read the doc for find_package. My opinion is that you should use find_package(XXX) for a FindXXX.cmake module. Thanks, I have just installed a 2.6 version of CMake and the documentation is much, much better. I have the CMake book but version 2.2 and it is now woefully out of

[CMake] PackageConfig.cmake = FIND_PACKAGE

2008-09-17 Thread Micha Renner
Hallo, I have two CMAKE-Module files (FindMAX.cmake intlConfig.cmake) Both are located in a separate directory (please, see the script below) FIND_PACKAGE can find MAX with no problems, but it comes in trouble looking for intl. It changes the name correctly to intlConfig.cmake, but it cannot

Re: [CMake] Small, realistic Cpack example

2008-09-17 Thread Stephen Collyer
Boudewijn Rempt wrote: On Tuesday 16 September 2008, Mike Jackson wrote: After some tinkering this afternoon with a small cmake project on OS X (based on Qt4) I was able to use the latest bits from CMake CVS to create a stand alone OS X bundle that correctly runs install_name_tool on the .app

Re: [CMake] make -j and cmake

2008-09-17 Thread Jim Chaney
In case my first post to the list went missing, re-posting. (If my post did reach the list, help! :) Jim From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Chaney Sent: 12 September 2008 10:54 To: cmake@cmake.org Subject: [CMake] make -j and cmake I have been attempting to

Re: [CMake] Small, realistic Cpack example

2008-09-17 Thread Mike Jackson
http://www.bluequartz.net/QTTest.tar.gz It was just over the size limit. I guess I could have removed the icon file.. --- Mike Jackson - Principal Software Engineer www.bluequartz.net On Sep 17, 2008, at 9:44 AM, Stephen Collyer wrote: Boudewijn Rempt wrote: On Tuesday 16 September

[CMake] Query about FindXXX files

2008-09-17 Thread Leo Breebaart
In CMake 2.6.1, the header for FindTIFF.cmake says: # This module defines # TIFF_INCLUDE_DIR, where to find tiff.h, etc. # TIFF_LIBRARIES, libraries to link against to use TIFF. # TIFF_FOUND, If false, do not try to use TIFF. # also defined, but not for general use are # TIFF_LIBRARY, where

Re: [CMake] Query about FindXXX files

2008-09-17 Thread Christian Ehrlicher
Leo Breebaart schrieb: In CMake 2.6.1, the header for FindTIFF.cmake says: # This module defines # TIFF_INCLUDE_DIR, where to find tiff.h, etc. # TIFF_LIBRARIES, libraries to link against to use TIFF. # TIFF_FOUND, If false, do not try to use TIFF. # also defined, but not for general use are

[CMake] FindFreetype wrong?

2008-09-17 Thread klaas.holwerda
Hi, I want to use FIND_PACKAGE( FREETYPE ) on windows. But it looks like it does not work. If i change in FindFreetype.cmake: FIND_PATH(FREETYPE_INCLUDE_DIR_ft2build ft2build.h $ENV{FREETYPE_DIR} NO_DEFAULT_PATH PATH_SUFFIXES include ) to this: FIND_PATH(FREETYPE_INCLUDE_DIR_ft2build

Re: [CMake] Query about FindXXX files

2008-09-17 Thread Leo Breebaart
Christian Ehrlicher [EMAIL PROTECTED] writes: Leo Breebaart schrieb: In CMake 2.6.1, the header for FindTIFF.cmake says: # This module defines # TIFF_INCLUDE_DIR, where to find tiff.h, etc. # TIFF_LIBRARIES, libraries to link against to use TIFF. # TIFF_FOUND, If false, do not

Re: [CMake] Small, realistic Cpack example

2008-09-17 Thread Mike Arthur
On Tuesday 16 September 2008 20:13:15 Mike Arthur wrote: I've written a CMake Module to do this that I've been meaning to add to the CMake bugtracker for ages. I showed it to Alex Neundorf at Akademy and he seemed very interested. Anyone else? Mike Jackson, I feel there are too many people

[CMake] Module to provide QT_LIBRARIES_RELEASE and QT_LIBRARIES_DEBUG

2008-09-17 Thread Mike Arthur
I've written a module (based on some work from the archives here) that provides QT_LIBRARIES_RELEASE and QT_LIBRARIES_DEBUG variables for easier installation of dynamic Qt applications. If anyone is interested in this then please either comment on the bug below or email me.

[CMake] Module to get Qt .dll library location on Windows

2008-09-17 Thread Mike Arthur
I've written a simple module that gets the .dll file of a Qt library on Windows given the .lib file. I've found this pretty useful when installing libraries to be bundled with a dynamic Qt executable If anyone is interested in this then please either comment on the bug below or email me.

[CMake] Module to get UNIX symlinks from a library's name

2008-09-17 Thread Mike Arthur
I've written a module get the associated symlinks for a library when given the library name or another */lib/* symlink on UNIX systems. If anyone is interested in this then please either comment on the bug below or email me. http://public.kitware.com/Bug/view.php?id=7693 Thanks to my

[CMake] Module to install files to the MSVC build directories

2008-09-17 Thread Mike Arthur
Visual Studio users expect to be able to click Run and have the application run correctly from the build directory. I've written a module that provides this functionality. If anyone is interested in this then please either comment on the bug below or email me.

[CMake] Module to relocate an OSX library

2008-09-17 Thread Mike Arthur
I've written a macro to relocate an OSX library. If anyone is interested in this then please either comment on the bug below or email me. http://public.kitware.com/Bug/view.php?id=7695 Thanks to my employer, Mendeley (http://www.mendeley.com) for allowing me to freely share these. --

Re: [CMake] Query about FindXXX files

2008-09-17 Thread Christian Ehrlicher
Leo Breebaart schrieb: Christian Ehrlicher [EMAIL PROTECTED] writes: Leo Breebaart schrieb: In CMake 2.6.1, the header for FindTIFF.cmake says: # This module defines # TIFF_INCLUDE_DIR, where to find tiff.h, etc. # TIFF_LIBRARIES, libraries to link against to use TIFF. # TIFF_FOUND, If

[CMake] Cross compiling toolchain: Substitution in OBJECTS variable

2008-09-17 Thread Simon Barner
Dear CMake users list, I am currently development a CMake cross build platform definition to support Microchips C18 C compiler[1]. I encountered the problem that C18's linker does not like '/' as path delimiter which is why I need some substitution for the filenames contained in the magic

[CMake] find windows libraries from within cygwin

2008-09-17 Thread James Bigler
I noticed that while running the cygwin version of CMake 2.6.0 the following variables are set: CMAKE_FIND_LIBRARY_SUFFIXES = .dll;.dll.a;.a CMAKE_FIND_LIBRARY_PREFIXES = cyg;lib Is there a reason why they couldn't be set to this: # Adds .lib to the list CMAKE_FIND_LIBRARY_SUFFIXES =

Re: [CMake] Weird output

2008-09-17 Thread Alan W. Irwin
On 2008-09-17 09:10+0200 Jesper Eskilson wrote: Timenkov Yuri wrote: Anyway, the printout is inside a if(this-Verbose) { ... }, so presumable it is something which can be switched on/off. And it seems not a problem, because CMake just tells why it regenerates dependencies. But it

Re: [CMake] make -j and cmake

2008-09-17 Thread Samuel Crow
Hello Jim Chaney, What version of CMake are you using? I'm using 2.6.2-RC4 here. I often use make -j7 on my company's 8 core Mac Pro. (Leaving the remaining core to manage interprocess communications, run make, manage disk caches, etc.) Using that configuration I can build ParaView in only

Re: [CMake] Query about FindXXX files

2008-09-17 Thread Alan W. Irwin
On 2008-09-17 15:45- Leo Breebaart wrote: So if the Cache is not the right way to pass information 'sideways' in your build tree, what is? I think I understand (but please correct if I get it wrong -- I am new to CMake) that if I call FIND_PACKAGE(TIFF) at a high enough level, i.e. at my

[CMake] multi-line definitions

2008-09-17 Thread Emmanuel Blot
Hi, Is it possible to write variable definition directives using multiple lines, i.e. I have a long definition string such as: SET (CMAKE_C_FLAGS_RELEASE -mcpu=arm7tdmi -std=gnu99 -fgnu89-inline - finline-functions -ffunction-sections -fdata-sections -fno-strict- aliasing -mno-thumb -Os -s

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

2008-09-17 Thread Neil Girdhar
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. I have some .proto files that live in the same directories as the

Re: [CMake] make -j and cmake

2008-09-17 Thread Bill Hoffman
Jim Chaney wrote: Although the version of make available on the cmake website seems to work OK from the command line, when I then run it under Incredibuild (to move from parallel to distributed builds) I get a crash inside make.exe. I have spoken to Xoreax (the makers of Incredibuild) and they