RE: [CMake] UseLATEX make clean

2008-02-19 Thread Moreland, Kenneth
I assume that proposal.latex is either the man LaTeX document or one if the INPUTS passed to ADD_LATEX_DOCUMENT. In this case, that file is copied over to the build directory as part of the build process. CMake considers the file in the binary directory a "built" file, and thus it is appropria

Re: [CMake] GLOB segmentation fault

2008-02-19 Thread Alexander Neundorf
On Tuesday 19 February 2008, pepone.onrez wrote: > Your example also works well for me and don't reproduce the bug. > > I attach a file with my example Yes, crashes with 2.4.6, works with cvs. Can you please check with 2.4.8 ? Available e.g. from the cmake download page. Alex

Re: [CMake] GLOB segmentation fault

2008-02-19 Thread pepone . onrez
Your example also works well for me and don't reproduce the bug. I attach a file with my example On Feb 19, 2008 7:24 PM, Alexander Neundorf <[EMAIL PROTECTED]> wrote: > Hi, > > On Tuesday 19 February 2008, pepone.onrez wrote: > > [EMAIL PROTECTED] ~/kk/cmake-glob-bug $ cat CMakeLists.txt > > FI

[CMake] UseLATEX make clean

2008-02-19 Thread Marco Yuen
Hi all, On one of my projects, I am using the UseLATEX macros to build a latex document. But the problem is when I type `make clean', it removes my *.latex document. I did a simple grep and found out that the file, CMakeFiles/dvi.dir/cmake_clean.cmake, contains the following: FILE(REMOVE

Re: [CMake] add_dependencies question

2008-02-19 Thread Nico Galoppo
Alan, thanks for the help. You are right that your approach works without debug/optimized. Unfortunately, even though TARGET_LINK_LIBRARIES(blendmaterials fem) works, this doesn't (in a debug build tree): TARGET_LINK_LIBRARIES(blendmaterials femd) The former is also incorrect for a debug build

Re: [CMake] add_dependencies question

2008-02-19 Thread Alan W. Irwin
On 2008-02-19 11:38-0500 Nico Galoppo wrote: Hi, I'm trying to get a 'demo' program inside my project tree to link in (and depend on) one of the built libraries from the same project tree. I'm having trouble getting the build process for the demo app to detect updates of the library. I've tried

Re: [CMake] GLOB segmentation fault

2008-02-19 Thread Alexander Neundorf
Hi, On Tuesday 19 February 2008, pepone.onrez wrote: > [EMAIL PROTECTED] ~/kk/cmake-glob-bug $ cat CMakeLists.txt > FILE (GLOB TESTS ./test/ *.cpp) > > ls -liha test/ > total 0 > 3635635 drwxr-xr-x 3 pepone pepone 72 2008-02-19 04:56 . > 998787 drwxr-xr-x 4 pepone pepone 160 2008-02-19 04:52 ..

[CMake] Re: XXX_DIR

2008-02-19 Thread Fernando Cacciola
Hi Alexander, On Tuesday 19 February 2008, Fernando Cacciola wrote: Hi people, According to my experiments in 2.4.7, XXX_DIR seems rather special. Consider a CMakeLists.txt containing just "find_package(XYZ)" Run "cmake ." You'll see the error: CMake Error: XYZ_DIR is not set. It must be

Re: [CMake] XXX_DIR

2008-02-19 Thread Alexander Neundorf
On Tuesday 19 February 2008, Fernando Cacciola wrote: > Hi people, > > According to my experiments in 2.4.7, XXX_DIR seems rather special. > > Consider a CMakeLists.txt containing just "find_package(XYZ)" > > Run "cmake ." > > You'll see the error: > > CMake Error: XYZ_DIR is not set. It must be s

[CMake] add_dependencies question

2008-02-19 Thread Nico Galoppo
Hi, I'm trying to get a 'demo' program inside my project tree to link in (and depend on) one of the built libraries from the same project tree. I'm having trouble getting the build process for the demo app to detect updates of the library. I've tried ADD_DEPENDENCIES() but to no avail. This is wha

Re: [CMake] Re: Changing MD -> MT (+patch for free toolkit)

2008-02-19 Thread Gonzalo Garramuño
Mathieu Malaterre wrote: On Feb 19, 2008 5:43 AM, Gonzalo Garramuño <[EMAIL PROTECTED]> wrote: Mathieu Malaterre wrote: Ok this was yet-another-weird-dll thingy, one cannot do: class GDCM_EXPORT String : std::string { ... } Please, learn a little bit more about C++. Oh thank you ! I'll tak

RE: [CMake] Wee question about CMake developer etiquette

2008-02-19 Thread Ken Martin
> Of course, this doesn't identifies the project leaders, but at least > gives an idea of who has typed enough lines of code to earn the > right to speak for a project. Actually it identifies who committed enough lines ... which is not quite the same as writing them. For CMake the Utilities direct

Re: [CMake] Wee question about CMake developer etiquette

2008-02-19 Thread Luis Ibanez
On a side note: One of the (many) nice things about Open Source is that credits can be identified in an objective manner. A pragmatic way of identifying the developers of an open source system is to simply look at CVS logs. There are several tools out there that harvest CVS logs and analyze them.

[CMake] XXX_DIR

2008-02-19 Thread Fernando Cacciola
Hi people, According to my experiments in 2.4.7, XXX_DIR seems rather special. Consider a CMakeLists.txt containing just "find_package(XYZ)" Run "cmake ." You'll see the error: CMake Error: XYZ_DIR is not set. It must be set to the directory containing XYZConfig.cmake in order to use XYZ. D

[CMake] Re: FindXXX, XXXConfig and UseXXX

2008-02-19 Thread Fernando Cacciola
Brad King wrote: If FindXXX.cmake is found in the paths specified by CMAKE_MODULE_PATH, it is loaded by find_package(XXX). There should not be a FindXXX.cmake at all. OK. So is either FindXXX or XXXConfig, for package configured without and with cmake respectively. If not, but the user s

[CMake] Re: FindXXX, XXXConfig and UseXXX

2008-02-19 Thread Fernando Cacciola
Brandon Van Every wrote: On Feb 18, 2008 3:34 PM, Fernando Cacciola <[EMAIL PROTECTED]> wrote: XXXConfig.cmake should ... FindXXX.cmake shoud ... UseXXX.cmake should set include directories, libraries, compiler and linker flags, etc, based on the settings defined in a XXXConfig.cmake that mu

Re: [CMake] Ignore library flags now works in 2.4.8!

2008-02-19 Thread Sylvain Benner
I don't see how that SET does anything other than set a variable. It must be how your project uses that variable. VS_MULTITHREADED_DEBUG_IGNORE_LIBRARY_FLAGS is not a variable that CMake looks at... 2.4.8 did fix the problem with multiple /NODEFAULTLIB lines not working. Seems like my la

Re: [CMake] Ignore library flags now works in 2.4.8!

2008-02-19 Thread Sylvain Benner
SET(VS_MULTITHREADED_DEBUG_IGNORE_LIBRARY_FLAGS "/NODEFAULTLIB:nafxcwd.lib /NODEFAULTLIB:libcmtd.lib" ) Hello, Why this kind of variable to implement the ignore flag ? In order to handle flags with this template : /flags:"parameters" for Visual Studio projects g

[CMake] ctest - how to set environment

2008-02-19 Thread Jörg Becker
Hi, I just started using CMake (2.4) and I'm very happy about the easy build setup. Encouraged by this quick success I tried to enable testing. But I cannot get working the tests correctly. My test executable needs an environment variable, which is not set in my standard session. As I understoo

Re: [CMake] Re: Changing MD -> MT (+patch for free toolkit)

2008-02-19 Thread Mathieu Malaterre
On Feb 19, 2008 5:43 AM, Gonzalo Garramuño <[EMAIL PROTECTED]> wrote: > Mathieu Malaterre wrote: > > Ok this was yet-another-weird-dll thingy, one cannot do: > > > > class GDCM_EXPORT String : std::string { ... } > > > > Please, learn a little bit more about C++. Oh thank you ! I'll take your advi