Re: [CMake] CMake 2.8.3 with VC2010 - CHECK_FUNCTION_EXISTS failed

2011-01-25 Thread Dongsheng Song
Thanks, I known the reason why cmke can not found the crt functions: When I set CFLAGS with double quotation marks: SET CFLAGS=/nologo /W3 /EHsc /O2 /Oy- /Zi /D"_WIN32_WINNT=0x0502" /D"WIN32_LEAN_AND_MEAN=1" Then cmake can issued invalid command lines like this: CL.EXE /nologo /nologo /W3 /EHs

[CMake] FindThreads in quiet mode

2011-01-25 Thread Mateusz Loskot
Hi, Is there any way to use FindThreads in quiet mode without hacking the script itself? In my configuration, I use all Find* modules in quiet mode and only the FindThreads makes noise: -- Looking for include files CMAKE_HAVE_PTHREAD_H -- Looking for include files CMAKE_HAVE_PTHREAD_H - found --

Re: [CMake] Improvements for cross-referencing in the documentation?

2011-01-25 Thread Alexander Neundorf
On Tuesday 25 January 2011, SF Markus Elfring wrote: > > Currently, for formatting the format as described in the readme.txt in > > the CMake modules directory is used (i.e. not that much formatting). > > Do higher level programming interfaces exist that can work with > message/documentation templa

Re: [CMake] Improvements for cross-referencing in the documentation?

2011-01-25 Thread SF Markus Elfring
Currently, for formatting the format as described in the readme.txt in the CMake modules directory is used (i.e. not that much formatting). Do higher level programming interfaces exist that can work with message/documentation templates in various file formats? Regards, Markus

Re: [CMake] directory traverse guidance

2011-01-25 Thread Andreas Pakulat
On 25.01.11 19:09:23, luxInteg wrote: > On Tuesday 25 January 2011 07:53:24 Andreas Pakulat wrote: > > On 25.01.11 02:57:27, luxInteg wrote: > > > Greetings > > > > > > I am learning cmake > > > > > > consider my project with two directories dir1 and dir2 > > > > > > if I want to:- > > > move

Re: [CMake] directory traverse guidance

2011-01-25 Thread Eric Noulard
2011/1/25 luxInteg : > On Tuesday 25 January 2011 07:53:24 Andreas Pakulat wrote: >> On 25.01.11 02:57:27, luxInteg wrote: >> > Greetings >> > >> > I am learning cmake >> > >> > consider my project  with  two directories  dir1 and dir2 >> > >> > if I want to:- >> > move to dir1 and  add a library l

Re: [CMake] CMake 2.8.3 with VC2010 - CHECK_FUNCTION_EXISTS failed

2011-01-25 Thread Bill Hoffman
On 1/25/2011 9:14 AM, Dongsheng Song wrote: From the page http://www.cmake.org/Wiki/CMake_FAQ#Is_there_an_option_to_produce_more_.27verbose.27_compiling.3F but when I set CMAKE_START_TEMP_FILE and CMAKE_END_TEMP_FILE to "" , CMakeError.log still include such lines: E:\usr\vs2010\VC\bin\cl.ex

Re: [CMake] directory traverse guidance

2011-01-25 Thread luxInteg
On Tuesday 25 January 2011 07:53:24 Andreas Pakulat wrote: > On 25.01.11 02:57:27, luxInteg wrote: > > Greetings > > > > I am learning cmake > > > > consider my project with two directories dir1 and dir2 > > > > if I want to:- > > move to dir1 and add a library libA in dir1 > > move to dir2

Re: [CMake] cmake with LaTeX [UseLATEX.cmake]

2011-01-25 Thread Moreland, Kenneth
Looking at the source code, I believe it is assumed that the paths you give for images are relative to the directory ADD_LATEX_DOCUMENT is called. If you make it an absolute path, UseLATEX.cmake will look in the wrong directory for your images, find none, and do no conversions. That would expl

Re: [CMake] Improvements for cross-referencing in the documentation?

2011-01-25 Thread Michael Jackson
I use the following script to generate a QtAssistant based documentation set. This allows quick searching of the docs and a more organized CMake documentation package. Here is the bash script. Maybe some else will find it useful also. I'll be the first to admit that I am not the best/most effici

Re: [CMake] add_custom_command and generated true

2011-01-25 Thread Micha Renner
Am Dienstag, den 25.01.2011, 15:34 +0100 schrieb Michael Hertling: > On 01/25/2011 10:17 AM, Micha Renner wrote: > > Recently, I learned that ADD_CUSTOM_COMMAND generated the property > > GENERATED TRUE for the generated file. > > > > Somehow I have trouble in this situation: > > > > In a top lev

Re: [CMake] add_custom_command and generated true

2011-01-25 Thread Michael Hertling
On 01/25/2011 10:17 AM, Micha Renner wrote: > Recently, I learned that ADD_CUSTOM_COMMAND generated the property > GENERATED TRUE for the generated file. > > Somehow I have trouble in this situation: > > In a top level CMakeLists file a source file, blue.c, is generated. This > file should be use

[CMake] CMake 2.8.3 with VC2010 - CHECK_FUNCTION_EXISTS failed

2011-01-25 Thread Dongsheng Song
Hi, When I use the following CMakeLists.txt: CMAKE_MINIMUM_REQUIRED (VERSION 2.8) INCLUDE(${CMAKE_ROOT}/Modules/CheckFunctionExists.cmake) CHECK_FUNCTION_EXISTS(log HAVE_LOG) CHECK_FUNCTION_EXISTS(exp HAVE_EXP) E:\var>cmake -G "NMake Makefiles" -- The C compiler identification is MSVC -- The CXX

Re: [CMake] Cannot run/debug cmake project with MSVC 2010 which works well in Linux

2011-01-25 Thread Ryan Pavlik
> > > > > > > > (Btw can we set the startup project automatically by setting an > > option in the CMakeList.txt file?) > > No, net yet. People have asked for this feature, but we have not > figured out a good way to do it yet. > > You might consider using my CreateLaunchers.cmake script, which can

Re: [CMake] Restrictions on where a binary can be put?

2011-01-25 Thread Michael Hertling
On 01/21/2011 04:41 PM, Alexander Neundorf wrote: > On Friday 21 January 2011, Michael Hertling wrote: >> On 01/20/2011 07:01 PM, Alexander Neundorf wrote: >>> On Sunday 09 January 2011, Michael Hertling wrote: > ... > I don't really understand why you want to get the LOCATION from your > t

Re: [CMake] Restrictions on where a binary can be put?

2011-01-25 Thread Michael Hertling
On 01/21/2011 08:47 AM, Andreas Pakulat wrote: > On 21.01.11 01:37:41, Michael Hertling wrote: >> So, what's your conclusion in this matter? Should the behavior in >> question be considered as a bug or is it alright? IMO, such a subtle >> side effect of a read operation on a subsequent write operat

Re: [CMake] Cannot run/debug cmake project with MSVC 2010 which works well in Linux

2011-01-25 Thread David Cole
On Mon, Jan 24, 2011 at 10:03 PM, Srimal Jayawardena wrote: > Hi > > Thanks for the advise. You're welcome. Please include the CMake mailing list on all your replies so that: (1) others may jump in and help in case I can't reply to a particular email in a timely manner and (2) others may benefit

[CMake] add_custom_command and generated true

2011-01-25 Thread Micha Renner
Recently, I learned that ADD_CUSTOM_COMMAND generated the property GENERATED TRUE for the generated file. Somehow I have trouble in this situation: In a top level CMakeLists file a source file, blue.c, is generated. This file should be used in a subdirectory with its own CMakeLists file. Running

Re: [CMake] cmake with LaTeX [UseLATEX.cmake]

2011-01-25 Thread Raymond Wan
Hi Daniel, On Tue, Jan 25, 2011 at 16:15, Daniel Pfeifer wrote: > Am Dienstag, den 25.01.2011, 15:41 +0900 schrieb Raymond Wan: >> ... Is there something I can do >> in my CMakeLists.txt file to ensure that it is the default target (and >> not "pdf" or any of the others) when I type "make". > >

Re: [CMake] cmake with LaTeX [UseLATEX.cmake]

2011-01-25 Thread Raymond Wan
Hi Daniel, Thanks for the reply! On Tue, Jan 25, 2011 at 16:15, Daniel Pfeifer wrote: > Am Dienstag, den 25.01.2011, 15:41 +0900 schrieb Raymond Wan: >>  Everything is fine except that pdflatex >> doesn't seem to work with images well on my system...  That's of >> course my system [or my :-) ]

Re: [CMake] Produce only an object file (*.o) from a CMake build target

2011-01-25 Thread Michael Hertling
On 01/24/2011 06:37 PM, Helseth, Nicholas H wrote: > I'm trying to build an object file using CMake, but I can't seem to get CMake > to build something other than a complete executable. I'm basically looking > for the result of the following compilation (the result will be loaded on a > VxWorks