[CMake] cmake hp-ux binary creates .sl libraries rather than .so libraries.

2009-04-28 Thread ankit jain
Hi all, I am building my code on hp-ux itanium 64 bit. but the cmake binaries that are available for hp-ux are for PA_RISC due to which when iam building my code the shared libraries got .sl extension rather than .so. Please let me know if binaries for itanium is there or not or with te same

Re: [CMake] Redefine target in nested project

2009-04-28 Thread Marcel Loose
Hi Tyler, What I meant is the following. I would like to be able to run 'make check' at any directory level in the build tree. Currently, this is not possible, because AFAIK, you then need to multiply define the target 'check' (for each separate project), which is not possible, because CMake

Re: [CMake] Redefine target in nested project

2009-04-28 Thread Marcel Loose
Hi Alex, Yes, I think this issue more or less covers what I want as well. In fact, I would like 'make check' to behave the same way as 'make test', which can also be invoked from any directory in the build tree. However, my 'make check' target also does a (re)compile of the test programs, whereas

[CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-04-28 Thread Martin Apel
Hi all, Inspired by the Emacs command cperl-perldoc-at-point I wrote a little command to show the CMake documentation of the command on which the cursor is currently positioned. It will open another buffer and show the documentation generated from cmake --help-command command in that buffer. I

[CMake] Static linking and find_library

2009-04-28 Thread Marcel Loose
Hi all, I've been searching the documentation, but couldn't find a way to specify that I want to create a statically linked binary. The only platform-specific and even compiler-specific answer I could find was to add -static to CMAKE_EXE_LINKER_FLAGS. Now this solves only part of the problem.

Re: [CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-04-28 Thread Bill Hoffman
Martin Apel wrote: Hi all, Inspired by the Emacs command cperl-perldoc-at-point I wrote a little command to show the CMake documentation of the command on which the cursor is currently positioned. It will open another buffer and show the documentation generated from cmake --help-command command

Re: [CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-04-28 Thread Martin Apel
Bill Hoffman wrote: Martin Apel wrote: Hi all, Inspired by the Emacs command cperl-perldoc-at-point I wrote a little command to show the CMake documentation of the command on which the cursor is currently positioned. It will open another buffer and show the documentation generated from

Re: [CMake] swig: no rule to make target ***

2009-04-28 Thread Jonatan Bijl
I've found the problem (and provide a solution, however in the tracker some other changes are already being made in UseSWIG.cmake) The problem is that because of relative path, an extra / was inserted. This resulted in that the path to file that was marked as being generated, was not identical to

Re: [CMake] cmake hp-ux binary creates .sl libraries rather than .so libraries.

2009-04-28 Thread Tyler Roscoe
On Tue, Apr 28, 2009 at 12:37:53PM +0530, ankit jain wrote: I am building my code on hp-ux itanium 64 bit. but the cmake binaries that are available for hp-ux are for PA_RISC due to which when iam building my code the shared libraries got .sl extension rather than .so. I believe .sl is the

Re: [CMake] cmake hp-ux binary creates .sl libraries rather than .so libraries.

2009-04-28 Thread Denis Scherbakov
HP-UX on PA-RISC uses *.sl or no extension (like libC.2 for PA-RISC 2.0) HP-UX on IA64 uses *.so naming like in Linux. I believe .sl is the correct extension for shared libraries on HPUX: ___ Powered by www.kitware.com Visit other Kitware

[CMake] Question on variable check in Cmake macro files

2009-04-28 Thread Steve Huston
Hi, While trying to figure out why my check for a system header file is not working, I was reading the CheckIncludeFile.cmake source to see what it does. I have a question on this idiom: IF(${VARIABLE} MATCHES ^${VARIABLE}$) ... It seems to prevent the check for the include file from running

[CMake] qt4_add_translation from build directory

2009-04-28 Thread Norbert Bokor
Hi guys, I have a small Qt project, with two .ts files. In the CMakeLists.txt I have the line QT4_ADD_TRANSLATION(qmfiles ${TRANSLATIONFILES}). It works perfectly when i run 'cmake . make' from the source directory, but if I do the same from an other directory, I get an error from make. The

Re: [CMake] qt4_add_translation from build directory

2009-04-28 Thread Norbert Bokor
oops, i found the problem: the .qm files were listed in .qrc :) I have a small Qt project, with two .ts files. In the CMakeLists.txt I have the line QT4_ADD_TRANSLATION(qmfiles ${TRANSLATIONFILES}). It works perfectly when i run 'cmake . make' from the source directory, but if I do the same

Re: [CMake] cmake hp-ux binary creates .sl libraries rather than .so libraries.

2009-04-28 Thread Bill Hoffman
Denis Scherbakov wrote: HP-UX on PA-RISC uses *.sl or no extension (like libC.2 for PA-RISC 2.0) HP-UX on IA64 uses *.so naming like in Linux. http://www.mainsoft.com/solutions/windows_to_hpipf.aspx Shared library naming convention The shared library naming convention on Itanium 2 is

Re: [CMake] Question on variable check in Cmake macro files

2009-04-28 Thread Denis Scherbakov
UNSET (HAVE_SOMETHING CACHE) Is there any way to force the check to run without deleting the cache file? ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please

Re: [CMake] Question on variable check in Cmake macro files

2009-04-28 Thread Steve Huston
Thanks, Denis! To KitWare... UNSET is not in the Mastering CMake book... -Original Message- From: Denis Scherbakov [mailto:denis_scherba...@yahoo.com] Sent: Tuesday, April 28, 2009 12:10 PM To: cmake@cmake.org; Steve Huston Subject: Re: [CMake] Question on variable check in Cmake

Re: [CMake] Emacs: Addition to cmake-model.el to show cmake documentation

2009-04-28 Thread James Bigler
On Tue, Apr 28, 2009 at 8:21 AM, Martin Apel martin.a...@simpack.de wrote: Bill Hoffman wrote: Martin Apel wrote: Hi all, Inspired by the Emacs command cperl-perldoc-at-point I wrote a little command to show the CMake documentation of the command on which the cursor is currently

Re: [CMake] cmake hp-ux binary creates .sl libraries rather than .so libraries.

2009-04-28 Thread Denis Scherbakov
The change will have to go in Modules/Platform/HP-UX.cmake. I think we should be able to check the CMAKE_HOST_SYSTEM_PROCESSOR variable. Is there a tool I can run to tell you exactly, how processor names shuld look like? Is it file or something else? If someone has access to one of

[CMake] More Emacs goodness (buffer names)

2009-04-28 Thread James Bigler
While there is some interest in cmake-mode.el I have another useful thing to share. I've been long irritated with having to deal with multiple buffers all name CMakeLists.txt. Emacs by default will call them CMakeLists.txt, CMakeLists.txt2, CMakeLists.txt3, etc.. This is really hard to switch

[CMake] cpack, both debug and release in win32

2009-04-28 Thread Anders Backman
Is it possible (and if so how) to use Cpack and create a package with files both from Debug and Release under windows? /A ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Re: [CMake] cmake hp-ux binary creates .sl libraries rather than .so libraries.

2009-04-28 Thread Alexander Neundorf
On Tuesday 28 April 2009, Denis Scherbakov wrote: The change will have to go in Modules/Platform/HP-UX.cmake. I think we should be able to check the CMAKE_HOST_SYSTEM_PROCESSOR variable. Is there a tool I can run to tell you exactly, how processor names shuld look like? Is it file or

[CMake] OS X Bundle building -- adding external DYLIB files?

2009-04-28 Thread kent williams
I just wrote a CMakeLists.txt file for a program that depends on a bunch of libraries that I had to build before building the application. I want to generate a deliverable OS X bundle, but I'm neither an OS X development expert nor a CMAKE OS X bundle expert. Simply put, I want to do the

[CMake] cmake-mode.el not installed (at least on windows)

2009-04-28 Thread James Bigler
Why isn't cmake-mode.el installed in the doc folder when installing CMake? I have to either download the cvs version or the grab a source tarball. James ___ Powered by www.kitware.com Visit other Kitware open-source projects at

[CMake] rpath install setting for the VTK examples?

2009-04-28 Thread Darren Weber
For a config that uses cmake ... \ -D CMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF \ -D CMAKE_SKIP_BUILD_RPATH:BOOL=OFF \ -D CMAKE_INSTALL_RPATH:STRING=${libInstallPath} \ -D VTK_USE_RPATH \ ... This provides a build tree with rpath settings specific to the build path. At the point of

Re: [CMake] Help on how to handle the name of a object file?

2009-04-28 Thread zhang
Thanks Alex for your reply. Ok, the problem has been resolved. The setting SET(CMAKE_D_OUTPUT_EXTENSION_REPLACE 1) should be placed in CMakeDCompiler.cmake.in. After more tests, I'll submit my D module for CMake. -- Heromyth zxpm...@yahoo.com.cn

Re: [CMake] cmake hp-ux binary creates .sl libraries rather than .so libraries.

2009-04-28 Thread ankit jain
2009/4/28 Bill Hoffman bill.hoff...@kitware.com Denis Scherbakov wrote: HP-UX on PA-RISC uses *.sl or no extension (like libC.2 for PA-RISC 2.0) HP-UX on IA64 uses *.so naming like in Linux. http://www.mainsoft.com/solutions/windows_to_hpipf.aspx Shared library naming convention The