[CMake] about Linking CXX executable main fail

2011-01-24 Thread doherty pete
my project tree is

.
|-- Bin
|   |-- oh yeah.aac
|   `-- oh yeah.h264
|-- CMakeCache.txt
|-- CMakeFiles
|   |-- CMakeCCompiler.cmake
|   |-- cmake.check_cache
|   |-- CMakeCXXCompiler.cmake
|   |-- CMakeDetermineCompilerABI_C.bin
|   |-- CMakeDetermineCompilerABI_CXX.bin
|   |-- CMakeDirectoryInformation.cmake
|   |-- CMakeOutput.log
|   |-- CMakeSystem.cmake
|   |-- CMakeTmp
|   |   `-- CMakeFiles
|   |   `-- cmTryCompileExec.dir
|   |-- CompilerIdC
|   |   |-- a.out
|   |   `-- CMakeCCompilerId.c
|   |-- CompilerIdCXX
|   |   |-- a.out
|   |   `-- CMakeCXXCompilerId.cpp
|   |-- main.dir
|   |   |-- build.make
|   |   |-- cmake_clean.cmake
|   |   |-- DependInfo.cmake
|   |   |-- depend.internal
|   |   |-- depend.make
|   |   |-- flags.make
|   |   |-- link.txt
|   |   `-- progress.make
|   |-- Makefile2
|   |-- Makefile.cmake
|   |-- Progress
|   |   |-- 1
|   |   |-- 10
|   |   |-- 11
|   |   |-- 12
|   |   |-- 13
|   |   |-- 14
|   |   |-- 15
|   |   |-- 16
|   |   |-- 2
|   |   |-- 3
|   |   |-- 4
|   |   |-- 5
|   |   |-- 6
|   |   |-- 7
|   |   |-- 8
|   |   |-- 9
|   |   `-- count.txt
|   |-- progress.marks
|   |-- rtspservice.dir
|   |   |-- build.make
|   |   |-- cmake_clean.cmake
|   |   |-- DependInfo.cmake
|   |   |-- depend.internal
|   |   |-- depend.make
|   |   |-- flags.make
|   |   |-- link.txt
|   |   `-- progress.make
|   |-- RtspService.dir
|   |   |-- build.make
|   |   |-- cmake_clean.cmake
|   |   |-- DependInfo.cmake
|   |   |-- depend.make
|   |   |-- flags.make
|   |   |-- link.txt
|   |   `-- progress.make
|   `-- TargetDirectories.txt
|-- cmake_install.cmake
|-- CMakeLists.txt
|-- cmd.txt
|-- Include
|   |-- cmd.h
|   |-- string_t.h
|   |-- TLock.h
|   |-- VBuffer.h
|   `-- VBufferT.h
|-- main.c
|-- Makefile
|-- Network
|   |-- CMakeFiles
|   |   |-- CMakeDirectoryInformation.cmake
|   |   |-- Network.dir
|   |   |   |-- build.make
|   |   |   |-- cmake_clean.cmake
|   |   |   |-- cmake_clean_target.cmake
|   |   |   |-- CXX.includecache
|   |   |   |-- DependInfo.cmake
|   |   |   |-- depend.internal
|   |   |   |-- depend.make
|   |   |   |-- flags.make
|   |   |   |-- link.txt
|   |   |   |-- progress.make
|   |   |   |-- Rtp.cpp.o
|   |   |   |-- Socket.cpp.o
|   |   |   |-- Tcp.cpp.o
|   |   |   `-- Udp.cpp.o
|   |   `-- progress.marks
|   |-- cmake_install.cmake
|   |-- CMakeLists.txt
|   |-- libNetwork.a
|   |-- Makefile
|   |-- Rtp.cpp
|   |-- Rtp.h
|   |-- Socket.cpp
|   |-- Socket.h
|   |-- Tcp.cpp
|   |-- Tcp.h
|   |-- Udp.cpp
|   `-- Udp.h
|-- Rtsp
|   |-- BaseEncoder.h
|   |-- Bitstream.cpp
|   |-- Bitstream.h
|   |-- CMakeCache.txt
|   |-- CMakeFiles
|   |   |-- CMakeCCompiler.cmake
|   |   |-- cmake.check_cache
|   |   |-- CMakeCXXCompiler.cmake
|   |   |-- CMakeDetermineCompilerABI_C.bin
|   |   |-- CMakeDetermineCompilerABI_CXX.bin
|   |   |-- CMakeDirectoryInformation.cmake
|   |   |-- CMakeOutput.log
|   |   |-- CMakeSystem.cmake
|   |   |-- CMakeTmp
|   |   |   `-- CMakeFiles
|   |   |   `-- cmTryCompileExec.dir
|   |   |-- CompilerIdC
|   |   |   |-- a.out
|   |   |   `-- CMakeCCompilerId.c
|   |   |-- CompilerIdCXX
|   |   |   |-- a.out
|   |   |   `-- CMakeCXXCompilerId.cpp
|   |   |-- Makefile2
|   |   |-- Makefile.cmake
|   |   |-- progress.marks
|   |   |-- Rtsp.dir
|   |   |   |-- Bitstream.cpp.o
|   |   |   |-- build.make
|   |   |   |-- cmake_clean.cmake
|   |   |   |-- cmake_clean_target.cmake
|   |   |   |-- CXX.includecache
|   |   |   |-- DependInfo.cmake
|   |   |   |-- depend.internal
|   |   |   |-- depend.make
|   |   |   |-- flags.make
|   |   |   |-- link.txt
|   |   |   |-- MediaSession.cpp.o
|   |   |   |-- MediaStream.cpp.o
|   |   |   |-- MediaStreamH264.cpp.o
|   |   |   |-- MediaStreamTransport.cpp.o
|   |   |   |-- progress.make
|   |   |   |-- RtpTransport.cpp.o
|   |   |   |-- Rtsp.cpp.o
|   |   |   |-- RtspResponse.cpp.o
|   |   |   |-- RtspSession.cpp.o
|   |   |   `-- RtspTransport.cpp.o
|   |   |-- RTSP.dir
|   |   |   |-- build.make
|   |   |   |-- DependInfo.cmake
|   |   |   |-- depend.internal
|   |   |   |-- depend.make
|   |   |   |-- flags.make
|   |   |   `-- progress.make
|   |   `-- TargetDirectories.txt
|   |-- cmake_install.cmake
|   |-- CMakeLists.txt
|   |-- libRtsp.a
|   |-- Makefile
|   |-- MediaSession.cpp
|   |-- MediaSession.h
|   |-- MediaStream.cpp
|   |-- MediaStream.h
|   |-- MediaStreamH264.cpp
|   |-- MediaStreamH264.h
|   |-- MediaStreamTransport.cpp
|   |-- MediaStreamTransport.h
|   |-- RtpTransport.cpp
|   |-- RtpTransport.h
|   |-- Rtsp.cpp
|   |-- Rtsp.h
|   |-- RtspResponse.cpp
|   |-- RtspResponse.h
|   |-- RtspSession.cpp
|   |-- RtspSession.h
|   |-- RtspTransport.cpp
|   `-- RtspTransport.h
|-- RtspClient
|   |-- ReadMe.txt
|   |-- RtspClient.cpp
|   |-- StdAfx.cpp
|   `-- StdAfx.h
|-- RtspService
|   |-- aac.h
|   |-- CMakeFiles
|   |   |-- CMakeDirectoryInformation.cmake
|   |   |-- progress.marks
|   |   `-- RtspService.dir
|   |   |-- build.make
|   |   |-- cmake_clean

Re: [CMake] about Linking CXX executable main fail

2011-01-24 Thread Rolf Eike Beer
> ADD_EXECUTABLE(main .)

> Linking CXX executable main
> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crt1.o: In function
> `_start':
> (.text+0x20): undefined reference to `main'
> collect2: ld returned 1 exit status
> make[2]: *** [main] Error 1
> make[1]: *** [CMakeFiles/main.dir/all] Error 2
> make: *** [all] Error 2
> 
> i have main.c at .

But you have not told CMake it should put it main.c into the executable!

ADD_EXECUTABLE(main main.c)

I'm also not sure what you do with all those INCLUDE() and AUX_* stuff. You 
probably got something totally wrong about how CMake works.

Eike
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] ExternalProject_Add, race conditions, MSVC_IDE

2011-01-24 Thread David Cole
On Sat, Jan 22, 2011 at 8:15 AM, Pau Garcia i Quiles
wrote:

> Hello,
>
> I've been using ExternalProject_Add and I have to say IMHO it's one of
> the best features added to CMake in the last years. It works great for
> me on Linux (makefiles), MSVC2010 (NMake Makefiles) and Mac
> (makefiles).
>
> Together with a small .sh (Unix) and a .bat (Windows), you can make
> your project full bootstrappable and only depend on the user having a
> C++ compiler (not even CMake, which has been the biggest argument
> against CMake by autotools fans)
>
> Now to the bad news:
>
> - I have experienced lots of race conditions on Windows, both with
> Cygwin and NMake
>

What sort of race conditions? And how do you know they are race conditions?



>
> - I've tried to use it with MSVC solutions but if fails miserable with
> errors about cmd.exe. Is this by design or is it a bug?
>

We do not intend to fail miserably, so I'm going to say that it's not by
design... but if you are specifying commands that will not succeed, then
perhaps it's by design on your side... :-)


Can you send a small example project that fails miserably, or is it only the
large complicated full project build that fails miserably? (Can you run the
"ExternalProject" test from the CMake test suite and have it succeed in your
environment?)


Thanks,
David



> I'm using the latest CMake snapshot. The project is here:
>
> http://gitorious.org/winstng
>
> See 'winst' and 'winst.bat' if you are interested in the boostrapping part.
>
> --
> Pau Garcia i Quiles
> http://www.elpauer.org
> (Due to my workload, I may need 10 days to answer)
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] ExternalProject_Add, race conditions, MSVC_IDE

2011-01-24 Thread Marcus D. Hanwell
On Mon, Jan 24, 2011 at 9:50 AM, David Cole  wrote:
> On Sat, Jan 22, 2011 at 8:15 AM, Pau Garcia i Quiles 
> wrote:
>>
>> Hello,
>>
>> I've been using ExternalProject_Add and I have to say IMHO it's one of
>> the best features added to CMake in the last years. It works great for
>> me on Linux (makefiles), MSVC2010 (NMake Makefiles) and Mac
>> (makefiles).
>>
>> Together with a small .sh (Unix) and a .bat (Windows), you can make
>> your project full bootstrappable and only depend on the user having a
>> C++ compiler (not even CMake, which has been the biggest argument
>> against CMake by autotools fans)
>>
>> Now to the bad news:
>>
>> - I have experienced lots of race conditions on Windows, both with
>> Cygwin and NMake
>
> What sort of race conditions? And how do you know they are race conditions?
>
I would be interested too, the Titan project has quite a few external
projects and I have not seen pathological race conditions. There are
occasional issues, such as an 8192 character limit on command line
arguments, and a recent change in CMake master alleviates this by
optionally using a file to pass the majority of initial cache
arguments into the external projects - again Titan has examples of
this.
>>
>> - I've tried to use it with MSVC solutions but if fails miserable with
>> errors about cmd.exe. Is this by design or is it a bug?
>
> We do not intend to fail miserably, so I'm going to say that it's not by
> design... but if you are specifying commands that will not succeed, then
> perhaps it's by design on your side... :-)
>
I have built Titan successfully using MSVC 2008 and 2008 Express IDE
and NMake based builds. Quite a few of the Titan developers routinely
use the MSVC IDE as far as I am aware. I think there are other
projects out there using MSVS and the IDE solutions too although I
think there are still (maybe) some issues with 2010.

Marcus
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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

2011-01-24 Thread SF Markus Elfring

Much to my surprise, there was only a single "CMAKE_MATCH" on our
whole documentation page. It would make sense to document the variables
CMAKE_MATCH_0 and friends explicitly. And cross-referencing left, right, north
and south would also be good.


Does the current documentation format support detailed cross-referencing (with 
hyperlinks)?


Regards,
Markus
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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

2011-01-24 Thread David Cole
On Mon, Jan 24, 2011 at 11:01 AM, SF Markus Elfring <
elfr...@users.sourceforge.net> wrote:

> Much to my surprise, there was only a single "CMAKE_MATCH" on our
>> whole documentation page. It would make sense to document the variables
>> CMAKE_MATCH_0 and friends explicitly. And cross-referencing left, right,
>> north
>> and south would also be good.
>>
>
> Does the current documentation format support detailed cross-referencing
> (with hyperlinks)?
>

No, it does not. Any cross-references are mentioned in text only form and
depend on the end user finding the cross-reference topic.



>
> Regards,
> Markus
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] How to retrieve the property list dynamically?

2011-01-24 Thread David Cole
On Sat, Jan 22, 2011 at 5:00 PM, SF Markus Elfring <
elfr...@users.sourceforge.net> wrote:

> Hello,
>
> Various properties can be queried by the command "get_property".
> http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Properties
>
> I am looking for a command in the corresponding programming interface which
> can
> return a list of property names which will be optionally filtered by a
> regular
> expression. Is such a functionality already available?
>

No, there is presently no facility for retrieving a list of properties.



> Regards,
> Markus
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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

2011-01-24 Thread SF Markus Elfring

No, it does not. Any cross-references are mentioned in text only form and depend
on the end user finding the cross-reference topic.


Would you like to change this situation?

Regards,
Markus
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] How to retrieve the property list dynamically?

2011-01-24 Thread SF Markus Elfring

No, there is presently no facility for retrieving a list of properties.


Is such a functionality also missing for variable names and their attributes?

Are more software developers interested to query settings only from a subset of 
items?


Regards,
Markus
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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

2011-01-24 Thread David Cole
On Mon, Jan 24, 2011 at 11:10 AM, SF Markus Elfring <
elfr...@users.sourceforge.net> wrote:

> No, it does not. Any cross-references are mentioned in text only form and
>> depend
>> on the end user finding the cross-reference topic.
>>
>
> Would you like to change this situation?
>
> Regards,
> Markus
>

I would, but it's a tall order that will take hours and hours of work on
someone's behalf, and I cannot sign up for the task at the moment.

We already have this bug filed to improve CTest and CPack documentation:
http://public.kitware.com/Bug/view.php?id=10067

Perhaps if you have concrete suggestions for cross-referencing, appending
notes to that bug would be a good idea.

Thanks,
David
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] How to retrieve the property list dynamically?

2011-01-24 Thread David Cole
On Mon, Jan 24, 2011 at 11:16 AM, SF Markus Elfring <
elfr...@users.sourceforge.net> wrote:

> No, there is presently no facility for retrieving a list of properties.
>>
>
> Is such a functionality also missing for variable names and their
> attributes?
>

If you look at the top of this page:
http://cmake.org/cmake/help/cmake-2-8-docs.html

There are links to the "well known by CMake" properties that exist on
various entities: global, directories, targets, tests, files, cache
variables.

There is also the command line:
  cmake --help-property-list

However, the property mechanism allows project-specific extension of the set
of properties on many of these entities. So these lists are incomplete.

To see about variables and cache variables, see the cmake command:
http://cmake.org/cmake/help/cmake-2-8-docs.html#command:get_cmake_property

which, at present, can list for you: VARIABLES, CACHE_VARIABLES, COMMANDS,
MACROS, and COMPONENTS



>
> Are more software developers interested to query settings only from a
> subset of items?
>

I'm sure many are interested.

Is there a concrete problem you are trying to solve by asking these
questions? If you have a specific problem, perhaps there's a way to get
something working for you without these additions to CMake. Can you tell us
if you have a specific problem you're trying to solve?




>
> Regards,
> Markus
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] How to retrieve the property list dynamically?

2011-01-24 Thread SF Markus Elfring

There are links to the "well known by CMake" properties that exist on various
entities: global, directories, targets, tests, files, cache variables.


I have not overlooked the description for them.

I guess that these properties were extended during CMake history. I do not want 
to convert this part of the documentation into a separate data base for the 
support of enhanced queries. I would appreciate if the CMake programming 
interface can provide sophisticated introspection capabilities directly.




However, the property mechanism allows project-specific extension of the set of
properties on many of these entities. So these lists are incomplete.


How can such extensions be dynamically listed?



Is there a concrete problem you are trying to solve by asking these questions?


Yes, of course. - My feature request is mostly for debugging purposes.

If there are problems or unexpected results for a target, I would like to know 
exactly which variables and properties were active in the affected situation.


Regards,
Markus
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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

2011-01-24 Thread SF Markus Elfring

We already have this bug filed to improve CTest and CPack documentation:
http://public.kitware.com/Bug/view.php?id=10067


I guess that the selection of a proper documentation format is a general problem 
for all applications.

Which are your format favourites for CMake components at the moment?

Regards,
Markus
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] How to retrieve the property list dynamically?

2011-01-24 Thread David Cole
On Mon, Jan 24, 2011 at 11:44 AM, SF Markus Elfring <
elfr...@users.sourceforge.net> wrote:

> There are links to the "well known by CMake" properties that exist on
>> various
>> entities: global, directories, targets, tests, files, cache variables.
>>
>
> I have not overlooked the description for them.
>
> I guess that these properties were extended during CMake history. I do not
> want to convert this part of the documentation into a separate data base for
> the support of enhanced queries. I would appreciate if the CMake programming
> interface can provide sophisticated introspection capabilities directly.
>
>
>
>  However, the property mechanism allows project-specific extension of the
>> set of
>> properties on many of these entities. So these lists are incomplete.
>>
>
> How can such extensions be dynamically listed?


At present, they cannot be dynamically listed. Having that capability would
be a good idea, but it's not there yet.



>
>
>  Is there a concrete problem you are trying to solve by asking these
>> questions?
>>
>
> Yes, of course. - My feature request is mostly for debugging purposes.
>
> If there are problems or unexpected results for a target, I would like to
> know exactly which variables and properties were active in the affected
> situation.
>

OK, great. Let us know if you do run into something specific. Lots of people
here already have techniques that they use to solve specific problems..




>
> Regards,
> Markus
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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

2011-01-24 Thread Helseth, Nicholas H
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 
target and linked then-it needs to be a *.o because of the way our build system 
works):
$(CC) $(CFLAGS) $(INC_DIRS) -c src/object.c
I've tried changing the OUTPUT_NAME property of the target, but that doesn't 
seem to help, either.
I think I could work around this by using a custom command, but that seems like 
I'm also working around the nice things that CMake provides.
Thanks for your help!

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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

2011-01-24 Thread Alexander Neundorf
On Monday 24 January 2011, SF Markus Elfring wrote:
> > We already have this bug filed to improve CTest and CPack documentation:
> > http://public.kitware.com/Bug/view.php?id=10067
>
> I guess that the selection of a proper documentation format is a general
> problem for all applications.
> Which are your format favourites for CMake components at the moment?

Currently, for formatting the format as described in the readme.txt in the 
CMake modules directory is used (i.e. not that much formatting).
This is parsed in cmake and then "translated" to html, plain text and man 
pages.
This parser would have to be extended. E.g. also having an *emphasized* or 
_emphasized_ tag would be nice.

Alex
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CDash submissions show up as two entries, one row for update, one for build/test etc

2011-01-24 Thread Johan Björk
Hi David,

I found the issue. I happened to put a trailing newline in CTEST_SITE,
causing some error further down the line. I guess CDash could deal
with it a bit better, but all in all it's a user error. (I utilized
the hostname command to get the hostname, but forgot to use
OUTPUT_STRIP_TRAILING_WHITESPACE)

Thanks a ton for the help
/Johan


On Thu, Jan 13, 2011 at 4:01 PM, Johan Björk  wrote:
> Attached them with some modifications.
> I have one ctest_.cmake for each platform, that all include
> ctest_base.cmake that contains a macro that allow me to run all different
> configurations of my builds.
> While I have your attention, would it somehow be possible to re-use a single
> sourcetree for several builds and still get the (same) update logs for all
> builds?
> /Johan
>
>
> On Thu, Jan 13, 2011 at 3:53 PM, David Cole  wrote:
>>
>> Can you pass along your whole script, and describe how the looping
>> works rather than just the snippet you sent...? (Or is that not
>> possible for some reason?)
>>
>> We don't typically run more than one dashboard per script, so you may
>> discovered a real problem with trying to run more than one dashboard
>> from a single script...
>>
>> Does this happen only on 2nd and later dashboards in your loop, or
>> does even the very 1st one demonstrate this problem?
>>
>>
>> On Thu, Jan 13, 2011 at 9:47 AM, Johan Björk  wrote:
>> > Hi David,
>> > Not using subprojects.
>> > CMake/CTest version 2.8.3 and CDash 1.8.2 (upgraded from the previous
>> > release however)
>> > /Johan
>> >
>> >
>> > On Thu, Jan 13, 2011 at 3:27 PM, David Cole 
>> > wrote:
>> >>
>> >> Are subprojects involved? (i.e. -- do you use them and do you have
>> >> them set up for this dashboard)
>> >>
>> >> What versions of CDash and CMake/CTest are you using?
>> >>
>> >>
>> >> On Thu, Jan 13, 2011 at 4:07 AM, Johan Björk  wrote:
>> >> > Hi everyone,
>> >> > I'm having a strange problem with my CDash submissions, and I'm not
>> >> > sure
>> >> > what is going on. For every submission I do, I get two builds, one
>> >> > that
>> >> > only
>> >> > has a UPDATE stage, and one line that has the rest of the steps.
>> >> > The row with UPDATE has a higher buildID versus the row with
>> >> > configure/build/test.
>> >> > In my CTest script, I run several builds in a loop. For every build I
>> >> > do
>> >> > //Setup CTEST_SOURCE_DIRECTORY and CTEST_BINARY_DIRECTORY
>> >> >   ctest_start(${CTEST_MODEL})
>> >> >   ctest_update()
>> >> >   ctest_configure()
>> >> >   ctest_build()
>> >> >   ctest_test()
>> >> >   if (WITH_COVERAGE AND CTEST_COVERAGE_COMMAND)
>> >> >     ctest_coverage()
>> >> >   endif (WITH_COVERAGE AND CTEST_COVERAGE_COMMAND)
>> >> >   if (WITH_MEMCHECK AND CTEST_MEMORYCHECK_COMMAND)
>> >> >     ctest_memcheck()
>> >> >   endif (WITH_MEMCHECK AND CTEST_MEMORYCHECK_COMMAND)
>> >> >   ctest_submit()
>> >> >
>> >> > I also tried adding the APPEND keyword to the ctest_* commands, but
>> >> > no
>> >> > luck.
>> >> > Has anyone seen this before? Does anyone have any suggestions how to
>> >> > debug
>> >> > this?
>> >> > Thanks
>> >> > /Johan
>> >> >
>> >> > ___
>> >> > Powered by www.kitware.com
>> >> >
>> >> > Visit other Kitware open-source projects at
>> >> > http://www.kitware.com/opensource/opensource.html
>> >> >
>> >> > Please keep messages on-topic and check the CMake FAQ at:
>> >> > http://www.cmake.org/Wiki/CMake_FAQ
>> >> >
>> >> > Follow this link to subscribe/unsubscribe:
>> >> > http://www.cmake.org/mailman/listinfo/cmake
>> >> >
>> >
>> >
>
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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

2011-01-24 Thread Andreas Pakulat
On 24.01.11 09:37:01, 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 target and linked then-it needs to
> be a *.o because of the way our build system works):

You can't do this with cmake.

Andreas

-- 
You will be run over by a beer truck.
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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

2011-01-24 Thread David Cole
On Mon, Jan 24, 2011 at 2:33 PM, Andreas Pakulat  wrote:

> On 24.01.11 09:37:01, 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 target and linked then-it needs to
> > be a *.o because of the way our build system works):
>
> You can't do this with cmake.
>
>
But you can do anything you want with custom commands in CMake. It just
might not be very easy or very cross-platform.

Why do you need the *.o files individually?

Could you instead build a static library with CMake, and then use a custom
command to glob for the *.o files produced?
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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

2011-01-24 Thread Alexander Neundorf
On Monday 24 January 2011, David Cole wrote:
> On Mon, Jan 24, 2011 at 2:33 PM, Andreas Pakulat  wrote:
> > On 24.01.11 09:37:01, 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 target and linked then-it needs to
> > > be a *.o because of the way our build system works):
> >
> > You can't do this with cmake.
>
> But you can do anything you want with custom commands in CMake. It just
> might not be very easy or very cross-platform.
>
> Why do you need the *.o files individually?
>
> Could you instead build a static library with CMake, and then use a custom
> command to glob for the *.o files produced?

Aren't the  etc. variables now also usable in normal cmake 
variables or something ?
Could this be used somehow for that ?

Alex
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CDash submissions show up as two entries, one row for update, one for build/test etc

2011-01-24 Thread Rolf Eike Beer
> I found the issue. I happened to put a trailing newline in CTEST_SITE,
> causing some error further down the line. I guess CDash could deal
> with it a bit better, but all in all it's a user error. (I utilized
> the hostname command to get the hostname, but forgot to use
> OUTPUT_STRIP_TRAILING_WHITESPACE)

Uh-oh. That sounds familiar. The same thing happened to me once. And if you 
don't set CTEST_SITE you get one entry per step (i.e. update, configure, build, 
test). IMHO CTest should do a) abort with a clear error message if CTEST_SITE 
is not a valid hostname for any reason (i.e. spaces or newlines) and b) set it 
to the hostname of the machine if it is not set at all.

Any opinions on this before I file a bug report?

Eike
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CDash submissions show up as two entries, one row for update, one for build/test etc

2011-01-24 Thread David Cole
On Mon, Jan 24, 2011 at 3:09 PM, Rolf Eike Beer  wrote:

> > I found the issue. I happened to put a trailing newline in CTEST_SITE,
> > causing some error further down the line. I guess CDash could deal
> > with it a bit better, but all in all it's a user error. (I utilized
> > the hostname command to get the hostname, but forgot to use
> > OUTPUT_STRIP_TRAILING_WHITESPACE)
>
> Uh-oh. That sounds familiar. The same thing happened to me once. And if you
> don't set CTEST_SITE you get one entry per step (i.e. update, configure,
> build, test). IMHO CTest should do a) abort with a clear error message if
> CTEST_SITE is not a valid hostname for any reason (i.e. spaces or newlines)
> and b) set it to the hostname of the machine if it is not set at all.
>
> Any opinions on this before I file a bug report?
>
> Eike
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>

Sounds like a reasonable bug report candidate to me.
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[CMake] Use Eigen2 in CMake based project

2011-01-24 Thread Stefan Dänzer
Hi all,

I have searched for the correct way to include the Eigen2 linear algebra
library in my CMake based project. But doing a search has not brought up a
suitable result. Has anyone used Eigen2 in their project? A CMake sample
script including Eigen2 would be most helpful.

Regards,

Stefan

-- 
--
Stefan Daenzer
Körnerplatz 8
04107 Leipzig

Tel.: +49-157-84993879

"Work like you don't need the money, love like you've never been hurt and
dance like no one is watching." - Randall G Leighton
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Use Eigen2 in CMake based project

2011-01-24 Thread Marcus D. Hanwell
On Mon, Jan 24, 2011 at 6:15 PM, Stefan Dänzer  wrote:
> Hi all,
> I have searched for the correct way to include the Eigen2 linear algebra
> library in my CMake based project. But doing a search has not brought up a
> suitable result. Has anyone used Eigen2 in their project? A CMake sample
> script including Eigen2 would be most helpful.

We make extensive use of Eigen2 in Avogadro.

http://avogadro.openmolecules.net/

Helpful parts are our FindEigen CMake module,

https://github.com/cryos/avogadro/blob/master/cmake/modules/FindEigen2.cmake

As it is header only you just need to call,

include_directories("${EIGEN2_INCLUDE_DIR}")

to add it to the compiler include path, and you should be able to use
it as expected.

Marcus
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Use Eigen2 in CMake based project

2011-01-24 Thread Stefan Dänzer
Wow, that was quick ;o)

thanks for the FindEigen2.cmake module. It works just fine.

Best regards,

Stefan

On Tue, Jan 25, 2011 at 12:19 AM, Marcus D. Hanwell <
marcus.hanw...@kitware.com> wrote:

> On Mon, Jan 24, 2011 at 6:15 PM, Stefan Dänzer 
> wrote:
> > Hi all,
> > I have searched for the correct way to include the Eigen2 linear algebra
> > library in my CMake based project. But doing a search has not brought up
> a
> > suitable result. Has anyone used Eigen2 in their project? A CMake sample
> > script including Eigen2 would be most helpful.
>
> We make extensive use of Eigen2 in Avogadro.
>
> http://avogadro.openmolecules.net/
>
> Helpful parts are our FindEigen CMake module,
>
>
> https://github.com/cryos/avogadro/blob/master/cmake/modules/FindEigen2.cmake
>
> As it is header only you just need to call,
>
> include_directories("${EIGEN2_INCLUDE_DIR}")
>
> to add it to the compiler include path, and you should be able to use
> it as expected.
>
> Marcus
>



-- 
--
Stefan Daenzer
Körnerplatz 8
04107 Leipzig

Tel.: +49-157-84993879

"Work like you don't need the money, love like you've never been hurt and
dance like no one is watching." - Randall G Leighton
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

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

2011-01-24 Thread Srimal Jayawardena
Hi

Thanks for the wonderful tool.

I'm fairly new to cmake and had this problem.

I'm using cmake 2.8.3 and my code builds and runs well in Linux but
has the following problems in MS Visual Studio 2010 (Express) in
Windows XP.

I cant run/debug the project by pressing (F5) although it does build
solution (F7) works without errors.

When I try to run/debug it seems to try to run a program called
'ALL_BUILD) (which doesnt exisit).

Also I see three projects in my solution :

- 'ALL_BUILDS',
-  'textureBackProjection' (this is the correct executable file
mentioend in the CMakeLists.txt and
- 'ZERO_CHECK'

ALL_BUILDS is set as the start up project.

If can change the start up project to 'textureBackProjection' by right
clicking pressing F5 to run/debug complains of a whole load of missing
PDB files for some windows dll files.

However, the executable is built as textureBackProjection.exe and this
runs OK  when clicked outside of MSVC.
Have I done something wrong that it won't run/debug inside Visual Studio 2010?.

Here is my simple CMakeLists.txt file:

# CMakeLists.txt - Uses Cmake to make cross platform builds
# Srimal wrote this on  24/01/2011
cmake_minimum_required (VERSION 2.6)
project (TEXMAP)
INCLUDE (CheckIncludeFiles)

#Set flags to include platform specific header files
CHECK_INCLUDE_FILES (stdafx.h HAVE_STDAFX_H)
CHECK_INCLUDE_FILES (windows.h HAVE_WINDOWS_H)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
${CMAKE_CURRENT_BINARY_DIR}/config.h)

#use OpenGL and GLUT
find_package(OpenGL)
find_package(GLUT)

#specify executable with source files needed
add_executable (textureBackprojection textureBackprojection.cpp
glmimg.cpp Texture.cpp glm.cpp)

# Link the executable to  library.
target_link_libraries (textureBackprojection glut)


Am I missing something here?

Thanks in advance

Srimal.
-- 
~
Srimal Jayawardena
BSc (Engineering), BIT, MIET
PhD Candidate
Research School of Information Sciences and Engineering
College of Engineering and Computer Science
Building 115, Corner of North and Daley Roads
Australian National University
T: +61 2 6125 1771
M: +61 422 684 854
F: +61 2 6125 8651

http://users.cecs.anu.edu.au/~srimalj/
http://srimal.sri-lankan.net/
http://srimal-techdiary.blogspot.com/

'My religion consists of a humble admiration of the illimitable
superior spirit who reveals himself in the slight details we are able
to perceive with our frail and feeble mind.' - Albert Einstein
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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

2011-01-24 Thread David Cole
Right click on "textureBackProjection" and choose "Set as StartUp
Project" -- after that, F5 will launch the executable for that
project.

If you are receiving error messages at launch after doing that, then
please send them along so we can help you get further along...


HTH,
David


On Mon, Jan 24, 2011 at 8:36 PM, Srimal Jayawardena  wrote:
> Hi
>
> Thanks for the wonderful tool.
>
> I'm fairly new to cmake and had this problem.
>
> I'm using cmake 2.8.3 and my code builds and runs well in Linux but
> has the following problems in MS Visual Studio 2010 (Express) in
> Windows XP.
>
> I cant run/debug the project by pressing (F5) although it does build
> solution (F7) works without errors.
>
> When I try to run/debug it seems to try to run a program called
> 'ALL_BUILD) (which doesnt exisit).
>
> Also I see three projects in my solution :
>
> - 'ALL_BUILDS',
> -  'textureBackProjection' (this is the correct executable file
> mentioend in the CMakeLists.txt and
> - 'ZERO_CHECK'
>
> ALL_BUILDS is set as the start up project.
>
> If can change the start up project to 'textureBackProjection' by right
> clicking pressing F5 to run/debug complains of a whole load of missing
> PDB files for some windows dll files.
>
> However, the executable is built as textureBackProjection.exe and this
> runs OK  when clicked outside of MSVC.
> Have I done something wrong that it won't run/debug inside Visual Studio 
> 2010?.
>
> Here is my simple CMakeLists.txt file:
>
> # CMakeLists.txt - Uses Cmake to make cross platform builds
> # Srimal wrote this on  24/01/2011
> cmake_minimum_required (VERSION 2.6)
> project (TEXMAP)
> INCLUDE (CheckIncludeFiles)
>
> #Set flags to include platform specific header files
> CHECK_INCLUDE_FILES (stdafx.h HAVE_STDAFX_H)
> CHECK_INCLUDE_FILES (windows.h HAVE_WINDOWS_H)
> CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
> ${CMAKE_CURRENT_BINARY_DIR}/config.h)
>
> #use OpenGL and GLUT
> find_package(OpenGL)
> find_package(GLUT)
>
> #specify executable with source files needed
> add_executable (textureBackprojection textureBackprojection.cpp
> glmimg.cpp Texture.cpp glm.cpp)
>
> # Link the executable to  library.
> target_link_libraries (textureBackprojection glut)
>
>
> Am I missing something here?
>
> Thanks in advance
>
> Srimal.
> --
> ~
> Srimal Jayawardena
> BSc (Engineering), BIT, MIET
> PhD Candidate
> Research School of Information Sciences and Engineering
> College of Engineering and Computer Science
> Building 115, Corner of North and Daley Roads
> Australian National University
> T: +61 2 6125 1771
> M: +61 422 684 854
> F: +61 2 6125 8651
>
> http://users.cecs.anu.edu.au/~srimalj/
> http://srimal.sri-lankan.net/
> http://srimal-techdiary.blogspot.com/
>
> 'My religion consists of a humble admiration of the illimitable
> superior spirit who reveals himself in the slight details we are able
> to perceive with our frail and feeble mind.' - Albert Einstein
> ___
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: 
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] directory traverse guidance

2011-01-24 Thread luxInteg
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 and  add a library libB  in dir2 
move back to dir1 and add a test  testA in dir1
move back to dir2 and add a test  testB to dir2


(the moving back is because of  the  interdependencies  of the tests with the 
libraries  i.e.   testA reaquires libB etc))

how do I do this?

sincerely
luxInteg
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] cmake config.h

2011-01-24 Thread luxInteg
On Sunday 28 November 2010 16:03:33 luxInteg wrote:

> I came across the useful wiki
> http://www.cmake.org/Wiki/CMake:How_To_Write_Platform_Checks
> 
I need '1's in config.g and I dont know how these are generated.
For gsl  This the cmake output:-

-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for strings.h
-- Looking for strings.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for vprintf
-- Looking for vprintf - found
-- Looking for memcpy
-- Looking for memcpy - found
-- Looking for memmove
-- Looking for memmove - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strtol
-- Looking for strtol - found
-- Looking for strtoul
-- Looking for strtoul - found
-- HAVE_EXIT_SUCCESS_AND_FAILURE
-- Looking for cos in m
-- Looking for cos in m - found
-- HAVE_DECL_FEENABLEEXCEPT
-- HAVE_DECL_HYPOT
-- HAVE_DECL_EXPM1
-- HAVE_DECL_ACOSH
-- HAVE_DECL_ASINH
-- HAVE_DECL_ATANH
-- Looking for ldexp
-- Looking for ldexp - found
-- Looking for frexp
-- Looking for frexp - found
-- Looking for isinf
-- Looking for isinf - found
-- Looking for finite
-- Looking for finite - found
-- Looking for isnan
-- Looking for isnan - found
-- HAVE_DECL_ISFINITE
-- HAVE_DECL_LOG1P
-- HAVE_PRINTF_LONGDOUBLE
-- HAVE_EXTENDED_PRECISION_REGISTERS
-- HAVE_FPU_X86_SSE
-- Performing Test HAVE__FPU_SETCW
-- Performing Test HAVE__FPU_SETCW - Success
-- Performing Test HAVE_FPSETPREC
-- Performing Test HAVE_FPSETPREC - Failed
-- Performing Test HAVE__CONTROLFP
-- Performing Test HAVE__CONTROLFP - Failed
-- Performing Test HAVE__CONTROLFP_S
-- Performing Test HAVE__CONTROLFP_S - Failed
-- Performing Test HAVE_FPU_INLINE_ASM_X86
-- Performing Test HAVE_FPU_INLINE_ASM_X86 - Success
-- HAVE_GNUX86_IEEE_INTERFACE
-- HAVE_IEEE_COMPARISONS
-- HAVE_IEEE_DENORMALS
-- Configuring done
-- Generating done
-- Build files have been written to: ~/S_TESTS/gsl-1.14/build




make fails like so

~/sys/infnan.c:98:3: error: #error "cannot define gsl_finite without 
HAVE_DECL_FINITE or HAVE_IEEE_COMPARISONS"
~/sys/infnan.c:115:3: error: #error "cannot define gsl_isnan without 
HAVE_DECL_ISNAN or HAVE_IEEE_COMPARISONS"

I thought I ensured   that  HAVE_IEEE_COMPARISONS  and HAVE_DECL_FINITE  and
HAVE_DECL_ISNAN  etc   were tested for and  set to 1 in  the config.h-
generating file (when these were not  not generated by  'standard cmake 
macros)  and hoped that they would be with the latter.  However  there were no 
'1's in the config.h file and  the make failed.  A quick/crude  substitute of 
appropriate '1's   in the said   file and the  make progressed.  So how do I 
ensure that  '1's are set in the  generated  config.h  file?


thanks in advance

sincerely
luxInteg
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] cmake with LaTeX [UseLATEX.cmake]

2011-01-24 Thread Raymond Wan
Hi all,

I'm not sure if many people have experience with UseLATEX.cmake
(http://www.cmake.org/Wiki/CMakeUserUseLATEX), but I have a question
which I guess is general.  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 :-) ] fault, though.

But in the PDF documentation, it says that multiple targets are created:

dvi
pdf
safepdf
...

and "safepdf" seems to work fine with me.  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".  I mean, without
making changes to UseLATEX.cmake (but since the file is in my own
directory, I could change it if I have to).

Basically, my CMakeLists.txt makes multiple files and I would rather
do just "make" than "make file1_safepdf file2_safepdf file3_safepdf"
to update all 3 PDF files.

Thank you!

Ray
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


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

2011-01-24 Thread Daniel Pfeifer
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 :-) ] fault, though.

Do you use the IMAGE_DIRS or IMAGES parameters? UseLATEX.cmake should
then convert all images to the right format. Maybe check you imagemagick
installation.

> ... 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".

Sure, there is the DEFAULT_PDF option. Have a look at section '3.3
Create a PDF by Default' in the manual.

cheers, Daniel


___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] directory traverse guidance

2011-01-24 Thread Andreas Pakulat
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 and  add a library libB  in dir2 
> move back to dir1 and add a test  testA in dir1
> move back to dir2 and add a test  testB to dir2
> 
> 
> (the moving back is because of  the  interdependencies  of the tests with the 
> libraries  i.e.   testA reaquires libB etc))
> 
> how do I do this?

You don't. All you need is 2 CMakeLists.txt, one in dir1 with libA and
testA targets and the other in dir2 with libB and testB targets. CMake
as a declarative language (to a certain extent) does not depend on the
order in which you declare targets and use them.

Andreas

-- 
Just to have it is enough.
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake