Re: [CMake] Precompiled Headers

2009-06-06 Thread John Drescher
On Sun, Jun 7, 2009 at 12:07 AM, Robert Dailey wrote: > Hey guys, > First of all I just want to let you guys know that I DID find this in my > search: > http://www.cmake.org/pipermail/cmake/2008-May/021483.html > However, I do not feel as if a direct answer was given. Besides, that was > over a yea

[CMake] Precompiled Headers

2009-06-06 Thread Robert Dailey
Hey guys, First of all I just want to let you guys know that I DID find this in my search: http://www.cmake.org/pipermail/cmake/2008-May/021483.html However, I do not feel as if a direct answer was given. Besides, that was over a year ago and I'm hoping some new developments have taken place. Is t

Re: [CMake] osx-10.5 ranlib vs ranlib -c vs libtool

2009-06-06 Thread Bob Tanner
On 2009-06-06 08:07:01 -0500, Bill Hoffman said: Bob Tanner wrote: On 2009-06-05 17:37:11 -0500, Bob Tanner said: First question, how to I add "-c" to ranlib evocation? Sorry for the follow-up to my post, but here is the work-around I used. IF (UNIX) MESSAGE (STATUS "Unix") IF (APPLE)

Re: [CMake] Custom compile command?

2009-06-06 Thread Bob Tanner
On 2009-06-06 07:43:21 -0500, Bill Hoffman said: You should use the full path to the files like this: set(puck_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/commands_puck.c) Thank you! This method works for both 2.4 and 2.6. -- Bob Tanner | Phone : (952 943-8700 http://www.real-t

Re: [CMake] LINK : fatal error LNK1104: cannot open file 'z.lib'

2009-06-06 Thread Tyler Roscoe
Make sure you reply to the list, not just to me. And please don't top-post. On Sat, Jun 06, 2009 at 07:43:00PM +0200, motes motes wrote: > Sorry for the confusion. My point was that when I downloaded zlib for > windows there was no file called 'z.lib'. I would like to know if anyone > knows where

Re: [CMake] LINK : fatal error LNK1104: cannot open file 'z.lib'

2009-06-06 Thread Tyler Roscoe
On Sat, Jun 06, 2009 at 09:30:00AM +0200, motes motes wrote: > I use cmake to create makefiles for a C++ project. One of the target links > is just called 'z': > > TARGET_LINK_LIBRARIES(z ... What do you mean by "target links"? Do you mean "libraries needed by my target"? Your TARGET_LINK_LIBRA

Re: [CMake] Using m4 as a additional preprocessor for C/C++

2009-06-06 Thread Michael Wild
On 5. Jun, 2009, at 22:27, Prasad H. L. wrote: Consolidating all the things, the working CMakeLists.txt is as follows - project(cmake_test) cmake_minimum_required(VERSION 2.6) macro(m4tocxx outfilename) add_custom_command( OUTPUT ${CMAKE_CURRENT_

Re: [CMake] osx-10.5 ranlib vs ranlib -c vs libtool

2009-06-06 Thread Bill Hoffman
Bob Tanner wrote: On 2009-06-05 17:37:11 -0500, Bob Tanner said: First question, how to I add "-c" to ranlib evocation? Sorry for the follow-up to my post, but here is the work-around I used. IF (UNIX) MESSAGE (STATUS "Unix") IF (APPLE) SET(CMAKE_C_CREATE_STATIC_LIBRARY

Re: [CMake] Custom compile command?

2009-06-06 Thread Bill Hoffman
Bob Tanner wrote: On Jun 5, 2009, at 11:00 PM, Bill Hoffman wrote: Works fine on osx+cmake version 2.6-patch 4 BUT fails on ubuntu+hardy+cmake version 2.4-patch 7 No, should work for both. How does it fail on 2.4? Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .h

[CMake] LINK : fatal error LNK1104: cannot open file 'z.lib'

2009-06-06 Thread motes motes
I use cmake to create makefiles for a C++ project. One of the target links is just called 'z': TARGET_LINK_LIBRARIES(z ... When I try to compile the code (Visual Studio 2008) I get: LINK : fatal error LNK1104: cannot open file 'z.lib' I have tried to download zlib for windows and point to the