Re: [CMake] Setting "Link Library Dependencies" Flag in VS 2005

2008-05-04 Thread Malhotra, Anupam
Hi Bill On turning this option on, all the libraries specified in the project dependency are added in "LIB32_OBJS" command line flag. How can we set this flag in Cmake? Thanks in advance. Thanks and Regards Anupam Malhotra -Original Message- From: Bill Hoffman [mailto:[EMAIL PROTECTED]

Re: [CMake] add_custom_command, VERBATIM and cmake-2.6

2008-05-04 Thread Brad King
Hendrik Sattler wrote: Hendrik Sattler schrieb: I must correct myself. It works with: - Windows, NMake Makefiles, Cmake-2.6 RC-9 - Linux, Unix Makefiles, CMake-CVS (RC-5 does not work) It does not work with: - Cygwin, Unix Makefiles, Cmake-2.6 RC-10 I just tried 2.6.0rc10 on Cygwin with Un

Re: [CMake] add_custom_command, VERBATIM and cmake-2.6

2008-05-04 Thread Bill Hoffman
Hendrik Sattler wrote: Hendrik Sattler schrieb: I must correct myself. It works with: - Windows, NMake Makefiles, Cmake-2.6 RC-9 - Linux, Unix Makefiles, CMake-CVS (RC-5 does not work) It does not work with: - Cygwin, Unix Makefiles, Cmake-2.6 RC-10 So, is everything find with CVS CMake?

Re: [CMake] dependencies in depend.make

2008-05-04 Thread Daniel
Bill Hoffman wrote: Daniel wrote: One thing I have noticed while trying to improve the speed of my builds is that the depends.make file for a project is fairly large (15MB) and that most of that size is dependencies against libraries I am using, mostly Boost and Qt. It is fairly safe to assume

[CMake] How compile to object file?

2008-05-04 Thread Alex J. Ivasyuv
Hi all! how to compile file to object? For example in Makefile was: someObj.o: someFile.cpp someFile.hpp $(CXX) -fPIC -c someFile.cpp -o someObj.o $(FLAGS) $(IDIR) I found add_library(someObj SHARED someFile.cpp) but it compile to ".so" file not to object. Setting variable SET (CMAKE_CXX_COM

Re: [CMake] add_custom_command, VERBATIM and cmake-2.6

2008-05-04 Thread Hendrik Sattler
Hendrik Sattler schrieb: I must correct myself. It works with: - Windows, NMake Makefiles, Cmake-2.6 RC-9 - Linux, Unix Makefiles, CMake-CVS (RC-5 does not work) It does not work with: - Cygwin, Unix Makefiles, Cmake-2.6 RC-10 What's going on? HS forget that mail, the system was still usin

Re: [CMake] add_custom_command, VERBATIM and cmake-2.6

2008-05-04 Thread Hendrik Sattler
Hi, forget that mail, the system was still using RC-5 :-/ Current CVS works just fine. HS Hendrik Sattler schrieb: Hi, I have a strange case where the following thing fails in cmake-2.6: add_custom_command ( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/proj_marshal.c COMMAND ${GLIB_GEN

[CMake] add_custom_command, VERBATIM and cmake-2.6

2008-05-04 Thread Hendrik Sattler
Hi, I have a strange case where the following thing fails in cmake-2.6: add_custom_command ( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/proj_marshal.c COMMAND ${GLIB_GENMARSHAL_EXECUTABLE} ARGS --prefix=proj_marshal proj_marshal.list --body > ${

Re: [CMake] CHECK_FUNCTION_EXISTS(UuidCreate HAVE_UUIDCREATE)

2008-05-04 Thread Bill Hoffman
Mathieu Malaterre wrote: On Sun, May 4, 2008 at 6:52 PM, Mathieu Malaterre <[EMAIL PROTECTED]> wrote: On Sun, May 4, 2008 at 6:32 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > Mathieu Malaterre wrote: > > > Hi, > > > > > > Anyone sees my mistake ? > > > > Thanks, > > > Try --debug-tr

Re: [CMake] Lost include dir in subdirectory process

2008-05-04 Thread Kertész Csaba
Hi, > Can you post the FindGLIB.cmake that you're using? > > In general it shouldn't matter where you call FIND_PACKAGE() in your > directory structure. I fixed my problem. It was caused by using add_subdirectories() before call the FIND_PACKAGE() on the top level. If I think about it now, it i

Re: [CMake] CHECK_FUNCTION_EXISTS(UuidCreate HAVE_UUIDCREATE)

2008-05-04 Thread Mathieu Malaterre
On Sun, May 4, 2008 at 6:52 PM, Mathieu Malaterre <[EMAIL PROTECTED]> wrote: > > On Sun, May 4, 2008 at 6:32 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > > Mathieu Malaterre wrote: > > > > > Hi, > > > > > > > > > > Anyone sees my mistake ? > > > > > > Thanks, > > > > > Try --debug-tryc

Re: [CMake] CHECK_FUNCTION_EXISTS(UuidCreate HAVE_UUIDCREATE)

2008-05-04 Thread Mathieu Malaterre
On Sun, May 4, 2008 at 6:32 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > Mathieu Malaterre wrote: > > > Hi, > > > > > > Anyone sees my mistake ? > > > > Thanks, > > > Try --debug-trycompile and look at the makefile generated. > > -Bill > > This thing ? cat CMakeFiles/CMakeTmp/CMakeFiles/cmTryC

Re: [CMake] CHECK_FUNCTION_EXISTS(UuidCreate HAVE_UUIDCREATE)

2008-05-04 Thread Bill Hoffman
Mathieu Malaterre wrote: Hi, Anyone sees my mistake ? Thanks, Try --debug-trycompile and look at the makefile generated. -Bill ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] CHECK_FUNCTION_EXISTS(UuidCreate HAVE_UUIDCREATE)

2008-05-04 Thread Mathieu Malaterre
Hi, According to: http://msdn.microsoft.com/en-us/library/aa379205(VS.85).aspx The symbol UuidCreate can be found in rpcrt4, so I used the following cmake commands: SET(CMAKE_REQUIRED_LIBRARIES "rpcrt4") CHECK_FUNCTION_EXISTS(UuidCreate HAVE_UUIDCREATE) But running it, gives me: -- Loo

Re: [CMake] dependencies in depend.make

2008-05-04 Thread Bill Hoffman
Daniel wrote: One thing I have noticed while trying to improve the speed of my builds is that the depends.make file for a project is fairly large (15MB) and that most of that size is dependencies against libraries I am using, mostly Boost and Qt. It is fairly safe to assume that I won't be mo

Re: [CMake] Lost include dir in subdirectory process

2008-05-04 Thread Philip Lowman
On Sun, May 4, 2008 at 3:14 AM, Kertész Csaba <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm CMake newbie and I'm using the default CMake 2.4 patch 7 under > Ubuntu Hardy. I have a project with autotools and I want to convert it > to cmake. I don't know if I'm in wrong way, but I would like to detec

[CMake] Lost include dir in subdirectory process

2008-05-04 Thread Kertész Csaba
Hi all, I'm CMake newbie and I'm using the default CMake 2.4 patch 7 under Ubuntu Hardy. I have a project with autotools and I want to convert it to cmake. I don't know if I'm in wrong way, but I would like to detect the external libraries in the top level directory and use the detected include di

Re: [CMake] cmake & sub-project(s)...

2008-05-04 Thread Timenkov Yuri
On Saturday 03 May 2008 21:11:03 Michael Andronov wrote: > Hi, Yuiri - > > Thank you for your speedy reply to my question. > > >>> ...you mean under "solution/project structure"? > > In plain .NET 2005, I was able to create the following: > solution foo, > project `library' within foo. > anoth