Re: [CMake] xcodeproj internal reference lottery

2010-03-04 Thread hauns
I can provide assistance if you want to attempt this. Thanks. -Bill good morning, i have downloaded the cmake sources. i see a couple of xcode related files. by way of a head start, can you provide a few pointers. where is the hash what variables am i looking for? (don't exhaust

[CMake] CMake Project Structure Out of Source Build

2010-03-04 Thread Flo
Hello, For our Project, we need a structure where its possible to work/test/deploy a single module and also build products which uses some modules. f.e MODULE 1 /bin /scr /test-src CMakeLists.txt MODULE 2 /bin /src /test-src CMakeLists.txt PRODUCT 1

Re: [CMake] CMake Project Structure Out of Source Build

2010-03-04 Thread Michael Wild
On 4. Mar, 2010, at 14:02 , Flo wrote: Hello, For our Project, we need a structure where its possible to work/test/deploy a single module and also build products which uses some modules. f.e MODULE 1 /bin /scr /test-src CMakeLists.txt MODULE 2 /bin

Re: [CMake] xcodeproj internal reference lottery

2010-03-04 Thread Bill Hoffman
ha...@mac.com wrote: I can provide assistance if you want to attempt this. Thanks. -Bill good morning, i have downloaded the cmake sources. i see a couple of xcode related files. by way of a head start, can you provide a few pointers. where is the hash what variables am i looking for?

Re: [CMake] Find_Library question

2010-03-04 Thread Bill Hoffman
Surya Kiran Gullapalli wrote: Hello all, I'm using Find_Library call at several places to locate libraries. The document says if Find_Library finds the library it stores the path in a cache variable, and Find_Library does not gets called again for the variable. Now If I run configure,

Re: [CMake] Skipping PATH when using find_library

2010-03-04 Thread Mika . Rajala
Still unsolved. Meanwhile I have made a horrible kludge that works for now, but which i really wouldn't want to leave as it is. I think my problems could be solved if i could define the version of the library which to look for. Is this somehow possible? I'll look into the documentation once

Re: [CMake] CMake interview for FLOSS Weekly in about 1 hour

2010-03-04 Thread Michael Jackson
Is there an archive of the interview? -- Mike Jackson www.bluequartz.net On Mar 3, 2010, at 3:39 PM, Bill Hoffman wrote: At 4:30, I am going to be interviewed for FLOSS Weekly. The chat is here: http://irc.twit.tv/ The video is here: http://live.twit.tv/ Should be going on some time

Re: [CMake] CMake interview for FLOSS Weekly in about 1 hour

2010-03-04 Thread Matt Williams
On 4 March 2010 14:04, Michael Jackson mike.jack...@bluequartz.net wrote: Is there an archive of the interview? I'm guessing it will appear at http://twit.tv/FLOSS -- Matt Williams http://milliams.com ___ Powered by www.kitware.com Visit other

Re: [CMake] CMake interview for FLOSS Weekly in about 1 hour

2010-03-04 Thread Bill Hoffman
Matt Williams wrote: On 4 March 2010 14:04, Michael Jackson mike.jack...@bluequartz.net wrote: Is there an archive of the interview? I'm guessing it will appear at http://twit.tv/FLOSS Yup, it should be 111, which is not up yet. -Bill ___ Powered

[CMake] static library link order

2010-03-04 Thread Biddiscombe, John A.
given a config like this TARGET_LINK_LIBRARIES(${KIT}CxxTests vtkIO vtkImaging vtksys) I have the trouble that vtksys pulls in a whole bunch of DynamicLoader stuff (kwsys) - which apart from being rather odd when building statically, forces the linker to need -ldl added to the link line. The

Re: [CMake] static library link order

2010-03-04 Thread Michael Wild
On 4. Mar, 2010, at 15:56 , Biddiscombe, John A. wrote: given a config like this TARGET_LINK_LIBRARIES(${KIT}CxxTests vtkIO vtkImaging vtksys) I have the trouble that vtksys pulls in a whole bunch of DynamicLoader stuff (kwsys) - which apart from being rather odd when building

Re: [CMake] static library link order

2010-03-04 Thread Bill Hoffman
Biddiscombe, John A. wrote: given a config like this TARGET_LINK_LIBRARIES(${KIT}CxxTests vtkIO vtkImaging vtksys) I have the trouble that vtksys pulls in a whole bunch of DynamicLoader stuff (kwsys) – which apart from being rather odd when building statically, forces the linker to need –ldl

Re: [CMake] static library link order

2010-03-04 Thread Biddiscombe, John A.
Bill Does ParaView itself not link static on linux? In general no not really. On our Cray we have no dynamic lib support and this kind of thing is very painful. On other machines even if you turn off shared libs, in actual fact, the final exe does pull in all the system libs as shared

Re: [CMake] static library link order

2010-03-04 Thread Biddiscombe, John A.
I am experimenting with Michael's CMAKE_CXX_LINK_EXECUTABLE suggestion It's works. Nice one. I like it, override the link line generation stuff with additional flags. I can at least proceed now with getting other things fixed, though I understand the nasty hack nature of the solution. Thanks

Re: [CMake] static library link order

2010-03-04 Thread Bill Hoffman
Biddiscombe, John A. wrote: Bill Does ParaView itself not link static on linux? In general no not really. On our Cray we have no dynamic lib support and this kind of thing is very painful. On other machines even if you turn off shared libs, in actual fact, the final exe does pull in all

[CMake] VS ToolFile

2010-03-04 Thread James Bigler
How hard would it be to augment CMake to allow custom tool files? I would need to specify the tool file in the project: ToolFiles ToolFile RelativePath=..\..\common\mycode.rules / /ToolFiles Then specify it in the

[CMake] Linking external static libraries into dlls

2010-03-04 Thread Christoph Höger
Hi all, I am currently trying to link a DLL with the netcdf_c++ static library in the hope I will not have to redistribute netcdf itself. (I thought the DLL could contain the needed code itself). Therefore I used target_library_add({${myLib} ${netcdf_c++.lib}) While I can build that library

Re: [CMake] Linking external static libraries into dlls

2010-03-04 Thread Tyler Roscoe
On Thu, Mar 04, 2010 at 06:30:02PM +0100, Christoph Höger wrote: I am currently trying to link a DLL with the netcdf_c++ static library in the hope I will not have to redistribute netcdf itself. (I thought the DLL could contain the needed code itself). This should work. Be careful, though. I

Re: [CMake] Watcom Support

2010-03-04 Thread Tyler Roscoe
On Wed, Mar 03, 2010 at 09:55:39AM -0800, J Decker wrote: OKay these should work great, but have to be done on a per-target basis, rather than being built into the generator. How would the ...\share\cmake-2.8\Modules\Platform\Windows-wcl386.cmake get modified to set link_flags? I would write

[CMake] How to add file dependencies to a target?

2010-03-04 Thread Aaron_Wright
I want to make an executable depend on output of a custom command. The custom command just copies a file to a place where the executable will be able to find it. I find that I can't get a dependency between an executable and, essentially, a file to work. For example, this doesn't work:

Re: [CMake] How to add file dependencies to a target?

2010-03-04 Thread Tyler Roscoe
On Thu, Mar 04, 2010 at 11:50:14AM -0800, aaron_wri...@selinc.com wrote: For example, this doesn't work: ADD_EXECUTABLE(foo ${foo_SOURCES} ${foo_HEADERS}) ADD_CUSTOM_COMMAND( OUTPUT ${PROJECT_BINARY_DIR}/bar.ini COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/bar.ini

[CMake] windows link error

2010-03-04 Thread Simmons, Aaron
I am trying to use cmake v2.8.0 on Windows XP to link a library. On Mac OS X and Linux, it works. But on Windows I get a very strange error: C:\strawberry\c\bin\ld.exe: /lib: No such file: No such file or directory The only thing I can think of is that this is some kind of reference

Re: [CMake] windows link error

2010-03-04 Thread Andreas Pakulat
On 04.03.10 17:08:32, Simmons, Aaron wrote: I am trying to use cmake v2.8.0 on Windows XP to link a library. On Mac OS X and Linux, it works. But on Windows I get a very strange error: C:\strawberry\c\bin\ld.exe: /lib: No such file: No such file or directory The only thing I can

Re: [CMake] windows link error

2010-03-04 Thread Simmons, Aaron
You're right-- msvc uses link; I was thinking of gcc's ld. I guess the question is why is it trying to use ld at all? Cmake successfully detects that its using msvc/nmake, as it compiles all of the .c files with cl. It's the lib-linking step that falls down. Here is my set output:

Re: [CMake] find_path for multiple files

2010-03-04 Thread Guillaume Duhamel
I ended up writing my own macro to do the job: http://code.google.com/p/soupcon/source/browse/trunk/findxul/FMP.cmake there's also some usage example in my FindXUL module: http://code.google.com/p/soupcon/source/browse/trunk/findxul/FindXUL.cmake That's a bit more complex than what I described as

Re: [CMake] windows link error

2010-03-04 Thread Andreas Pakulat
On 04.03.10 17:27:56, Simmons, Aaron wrote: You're right-- msvc uses link; I was thinking of gcc's ld. I guess the question is why is it trying to use ld at all? Cmake successfully detects that its using msvc/nmake, as it compiles all of the .c files with cl. It's the lib-linking step

Re: [CMake] windows link error

2010-03-04 Thread Mateusz Loskot
Andreas Pakulat wrote: On 04.03.10 17:27:56, Simmons, Aaron wrote: You're right-- msvc uses link; I was thinking of gcc's ld. I guess the question is why is it trying to use ld at all? Cmake successfully detects that its using msvc/nmake, as it compiles all of the .c files with cl. It's

[CMake] OS X, embedding Frameworks and generator problems

2010-03-04 Thread Francisco Requena
Hi, I'm trying to develop a simple application using SDL on OS X. Here's my CMakeLists.txt: cmake_minimum_required(VERSION 2.8) project(newapp) include(FindSDL) include(FindOpenGL) include_directories(${SDL_INCLUDE_DIR}) string(REPLACE -framework Cocoa SDL_LIBRARY ${SDL_LIBRARY})

Re: [CMake] windows link error

2010-03-04 Thread Simmons, Aaron
Thanks-- the cmake cache is where the trouble is: CMAKE_LINKER:FILEPATH=C:/strawberry/c/bin/ld.exe I used to have strawberry perl installed a while ago, but it's now uninstalled. I guess I ran cmake back then and it cached the wrong linker. Rerunning cmake doesn't seem to overwrite

Re: [CMake] OS X, embedding Frameworks and generator problems

2010-03-04 Thread David Cole
SDL_library is not a source file, so don't call: set_source_files_properties on it... That should eliminate the spurious content copy attempt... On Thu, Mar 4, 2010 at 6:17 PM, Francisco Requena the@gmail.com wrote: Hi, I'm trying to develop a simple application using SDL on OS X.

Re: [CMake] windows link error

2010-03-04 Thread Tyler Roscoe
On Thu, Mar 04, 2010 at 06:19:03PM -0500, Simmons, Aaron wrote: Thanks-- the cmake cache is where the trouble is: CMAKE_LINKER:FILEPATH=C:/strawberry/c/bin/ld.exe I'm not sure where the bug is (if there is one). Should re-running cmake recreate the cache? Why does the presence of

Re: [CMake] Watcom Support

2010-03-04 Thread J Decker
but then, for every project that already exists, it won't build correctly using watcom, because the options just aren't set in the generator, or 3 more flavors of generators aren't added to support static library, executlable and dynamic library with correct compile time options. But then

[CMake] Linking windows resources with Watcom

2010-03-04 Thread J Decker
I have tracked it down, and have discovered that the wmake watcom generator does not support watcom... lacking the following lines... ENABLE_LANGUAGE(RC) SET(CMAKE_COMPILE_RESOURCE rc) SET(CMAKE_RC_COMPILE_OBJECT CMAKE_RC_COMPILER /foOBJECT SOURCE) Problem with adding this, is that