Re: [CMake] CMAKE 2.6.0: Wrong dependencies when CMakeLANGInformation.cmake is missing

2008-06-09 Thread Wojciech Migda
I've prepared a patch against the 2.6.0 version. Unfortunately I could not find the patch format instructions for cmake, so I took those for linux kernel (diff -up). Thanks for the patch. The asm support is still very new, so thanks for pointing out issues. Can you create a small test project

Re: [CMake] FIND_PACKAGE from another Project

2008-06-09 Thread Horacio Sanson
On Mon, Jun 9, 2008 at 7:14 AM, Alexander Neundorf [EMAIL PROTECTED] wrote: On Friday 06 June 2008, hsanson wrote: From the CMake 2.4 documentation I get: Directories listed in CMAKE_MODULE_PATH are searched for files called Findname.cmake. If no such file is found, it is expected that the

[CMake] Help with INSTALL(TARGETS

2008-06-09 Thread Michael Salt
Hello All, This is my first cmake post, please be gentle. I have a cmake project that consists of a top level, and then three sublevels which contain the individual projects. At this moment, compilation happens without fault, but runtime fails due to DLLs not being in the correct place.

[CMake] question about INSTALL_PROGRAMS vs INSTALL(TARGET

2008-06-09 Thread Simon Warfield
I am using cmake 2.6. I notice a difference in behaviour between INSTALL_PROGRAMS(/bin FILES CreateTriangleModel ) and INSTALL(TARGETS CreateTriangleModel RUNTIME DESTINATION bin ) In the case of INSTALL_PROGRAMS the build tree binary and the installed binary are linked with the full path of

[CMake] install target: how to copy .pdb file for dlls

2008-06-09 Thread Peter
Hello, I've noticed that the install target command doesn't copy pdb files when installing dlls. Is there an official way to do that? Or do I just have to create an install rule by hand for them? Thanks and regards, Peter ___ CMake mailing list

[CMake] target_link_libraries between dll and static libs

2008-06-09 Thread Andreas Fredriksson
Hi, I'm wondering why the below CMake snippet causes dlib2 to link with slib. Does it really make sense to propagate static dependencies upward from dynamic libraries or am I missing something? Is there a way to disable it? :) add_library(slib STATIC lib1.c) add_library(dlib1 SHARED dlib1.c)

[CMake] Building Java CNI

2008-06-09 Thread Volodymyr Buell
Hi I'm trying to build C++ Java application using GCJ's CNI interface. But there no info about how to do that. I even don't know from where to start... Please help :) -- Thanks, Volodymyr ___ CMake mailing list CMake@cmake.org

Re: [CMake] Help with INSTALL(TARGETS

2008-06-09 Thread Alexander Neundorf
On Monday 09 June 2008, Michael Salt wrote: Hello All, ... There are two other directories, gmadParser and CUDA, each containing an add_libraries() command. When I generate a Visual Studio 9 project, I get the following error message... CMake Error at CMakeLists.txt:9 (INSTALL):

Re: [CMake] question about INSTALL_PROGRAMS vs INSTALL(TARGET

2008-06-09 Thread Alexander Neundorf
On Monday 09 June 2008, Simon Warfield wrote: I am using cmake 2.6. I notice a difference in behaviour between INSTALL_PROGRAMS(/bin FILES CreateTriangleModel ) and INSTALL(TARGETS CreateTriangleModel RUNTIME DESTINATION bin ) In the case of INSTALL_PROGRAMS the build tree binary and the

Re: [CMake] target_link_libraries between dll and static libs

2008-06-09 Thread Alexander Neundorf
On Monday 09 June 2008, Andreas Fredriksson wrote: Hi, I'm wondering why the below CMake snippet causes dlib2 to link with slib. Does it really make sense to propagate static dependencies upward from dynamic libraries or am I missing something? Is there a way to disable it? :)

Re: [CMake] FIND_PACKAGE from another Project

2008-06-09 Thread Alexander Neundorf
On Monday 09 June 2008, Horacio Sanson wrote: On Mon, Jun 9, 2008 at 7:14 AM, Alexander Neundorf [EMAIL PROTECTED] wrote: On Friday 06 June 2008, hsanson wrote: From the CMake 2.4 documentation I get: Directories listed in CMAKE_MODULE_PATH are searched for files called

Re: [CMake] target_link_libraries between dll and static libs

2008-06-09 Thread Andreas Fredriksson
On Mon, Jun 9, 2008 at 8:48 PM, Alexander Neundorf [EMAIL PROTECTED] wrote: Which behaviour do you expect here ? Not everything from slib will be included in dlib1. Hi Alexander, assuming you mean dlib2 (dlib1 lists slib in its target_link_libraries, so it should get a copy of slib included).

[CMake] Compiling a file during CMake creation

2008-06-09 Thread Steven Van Ingelgem
Hi, I want to compile a file when parsing the CMakeLists.txt... I tried the following: TRY_COMPILE( PROJ_OK ${PROJECT_SOURCE_DIR}/bin ${PROJECT_SOURCE_DIR}/externals/proj proj ) But this is returning false... What could I have done wrong? It is doing something, but I don't

Re: [CMake] Compiling a file during CMake creation

2008-06-09 Thread Alexander Neundorf
On Monday 09 June 2008, Steven Van Ingelgem wrote: Hi, I want to compile a file when parsing the CMakeLists.txt... Why ? Maybe there is already a ready-to-use macro which does what you want t do ? Do you want to test for something or do you want to build something you need later on ? Alex

Re: [CMake] Compiling a file during CMake creation

2008-06-09 Thread Steven Van Ingelgem
I am building an executable which I need to pre-process some files (much like QT does). I think I found it though... I set the project and it seems to work, but it only compiles in debug mode, no matter what I set... Do you have any idea about that? Greetings 2008/6/9 Alexander Neundorf [EMAIL

Re: [CMake] Compiling a file during CMake creation

2008-06-09 Thread Alexander Neundorf
On Monday 09 June 2008, Steven Van Ingelgem wrote: I am building an executable which I need to pre-process some files (much like QT does). You mean like moc, which is then used to generate source which will be built ? You don't have to do that at cmake time, you can do this at build time. With

Re: [CMake] Compiling a file during CMake creation

2008-06-09 Thread Alan W. Irwin
On 2008-06-09 23:22+0200 Steven Van Ingelgem wrote: I am building an executable which I need to pre-process some files [...] Please be more specific about your actual needs. For example, do you want to preprocess at cmake time or at build time? If the latter just use add_executable to build

Re: [CMake] FIND_PACKAGE from another Project

2008-06-09 Thread hsanson
Alexander Neundorf wrote: On Monday 09 June 2008, Horacio Sanson wrote: On Mon, Jun 9, 2008 at 7:14 AM, Alexander Neundorf [EMAIL PROTECTED] wrote: On Friday 06 June 2008, hsanson wrote: From the CMake 2.4 documentation I get: Directories listed in CMAKE_MODULE_PATH are

Re: [CMake] How to set up Cygwin + CMake + GNU Makefiles + cl.exe correctly?

2008-06-09 Thread John Doe
I was able to setup the compiler using a file similar to Bill's. Unfortunately it appears that cygwin cmake is passing the unix paths to cl.exe on my Windows Vista 64 system. What command line options for cmake will allow the compiler tests to pass. I tried -DWIN32=1 and -DCMAKE_CL_64=1, but

Re: [CMake] cmake 2.6.0 - eclipse CDT - lib project

2008-06-09 Thread Miguel A. Figueroa-Villanueva
On Fri, Jun 6, 2008 at 6:14 PM, Olivier Tournaire wrote: Hi all, I am currently tring to import a cmake generated project in eclipse. This project is a lib, and eclipse does not seem to be able to load it. Everything works fine when importing an executable project (FileImportGeneralExisting

Re: [CMake] How to set up Cygwin + CMake + GNU Makefiles + cl.exe correctly?

2008-06-09 Thread Bill Hoffman
John Doe wrote: I was able to setup the compiler using a file similar to Bill's. Unfortunately it appears that cygwin cmake is passing the unix paths to cl.exe on my Windows Vista 64 system. What command line options for cmake will allow the compiler tests to pass. I tried -DWIN32=1 and

Re: [CMake] CMAKE 2.6.0: Wrong dependencies when CMakeLANGInformation.cmake is missing

2008-06-09 Thread Wojciech Migda
Alexander Neundorf pisze: On Sunday 08 June 2008, Wojciech Migda wrote: As it appeared the . entry was present due to me using user-defined assembler compiler for the build. Commenting out the relevant ENABLE_LANGUAGE command in CMakeLists.txt led to proper behaviour. But why ? I looked at