Re: [CMake] How to find the DLL's a a required package searched with FIND_PACKAGE()?

2010-02-11 Thread Arjen Markus
On 2010-02-11 01:20, David Cole wrote: On Wed, Feb 10, 2010 at 7:16 PM, Alan W. Irwin Would setting that environment variable from cmake affect subsequent Windows builds? I don't have any Windows development experience, but this question just came up on the PLplot

Re: [CMake] How to find the DLL's a a required package searched with FIND_PACKAGE()?

2010-02-11 Thread Michael Wild
On 11. Feb, 2010, at 9:07 , Arjen Markus wrote: On 2010-02-11 01:20, David Cole wrote: On Wed, Feb 10, 2010 at 7:16 PM, Alan W. Irwin Would setting that environment variable from cmake affect subsequent Windows builds? I don't have any Windows development experience, but

Re: [CMake] How to find the DLL's a a required package searched with FIND_PACKAGE()?

2010-02-11 Thread Arjen Markus
On 2010-02-11 09:13, Michael Wild wrote: You might want to take a look at setlocal/endlocal: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/batch.mspx?mfr=true Oh, I had completely forgotten that those commands exist too. That might be the solution,

Re: [CMake] FindBoost: Boost_ADDITIONAL_VERSIONS : what to do for trunk

2010-02-11 Thread Hicham Mouline
-Original Message- Subject: [CMake] FindBoost: Boost_ADDITIONAL_VERSIONS : what to do for trunk Hi, I use the trunk checkout of boost as well as released versions. I have it installed under \Program Files - boost-trunk - boost_1_41_0 Is there any support at all for a

[CMake] CDash LDAP problem

2010-02-11 Thread Marcel Loose
Hi all, I'm experiencing an LDAP problem with CDash. When I try to log into CDash for the first time as a valid LDAP user, I get the message: No givenname (cn) set in LDAP, cannot register user into MIDAS Now I've been digging in the PHP-code a bit, but I know little PHP. The problem seems to

[CMake] Post Build event question.

2010-02-11 Thread Surya Kiran Gullapalli
Hello all, In my project, I've added a custom command, which is supposed to run as POST BUILD event. Its some thing like this. For each of the source file in the directory, run a perl script on that source file and create some output file. Lets say I've 100 source files, so I end with 100 post

Re: [CMake] Post Build event question.

2010-02-11 Thread Surya Kiran Gullapalli
Also, I want this custom command depend on some other file, lets say the input perl script. If my perl script changes, It has to run the commands again. How to specify the dependencies ? I cannot use Add_Custom_Command () with build event argument and dependency information. Thanks in advance,

[CMake] Bison extra headers

2010-02-11 Thread Hilton Medeiros
Hello, I'm using bison_target() from FindBISON with the C++ bison interface, on CMake 2.8.0. When using this interface the following extra files are generated by bison: location.hh position.hh stack.hh They do not get listed in BISON_target_OUTPUTS and do not get erased in 'make clean'. See

Re: [CMake] How to findXXX libraries with debug suffix

2010-02-11 Thread Philip Lowman
On Wed, Feb 10, 2010 at 10:49 AM, Will Dicharry wdicha...@stellarscience.com wrote: My only other comment is that some modules already use the following form (usually due to someone adding DEBUG support later) FOO_LIBRARY (cache variable) FOO_LIBRARY_DEBUG (cache variable) FOO_LIBRARIES

Re: [CMake] Function for visibility definitions

2010-02-11 Thread Bill Hoffman
Hilton Medeiros wrote: Wow, now you got me. That is why I love discussions. Thanks for your insight, now I (my hard-as-rock head) can understand why this is not feasible. As a side note I think this should be in a list, maybe in the wiki, to advise others no to do this. A list of 'do not even

Re: [CMake] CDash LDAP problem

2010-02-11 Thread Bill Hoffman
Wrong mailing list, use the cdash mailing list. Marcel Loose wrote: Hi all, I'm experiencing an LDAP problem with CDash. When I try to log into CDash for the first time as a valid LDAP user, I get the message: No givenname (cn) set in LDAP, cannot register user into MIDAS Now I've been

Re: [CMake] Function for visibility definitions

2010-02-11 Thread Hendrik Sattler
Zitat von Bill Hoffman bill.hoff...@kitware.com: That said, you could have CMake configure a .h file that had this stuff in it. It might be nice if the function did that automatically, as it is almost the same code for every project. Then once your project was built with CMake, you would

Re: [CMake] Function for visibility definitions

2010-02-11 Thread Michael Wild
On 11. Feb, 2010, at 15:40 , Hendrik Sattler wrote: Zitat von Bill Hoffman bill.hoff...@kitware.com: That said, you could have CMake configure a .h file that had this stuff in it. It might be nice if the function did that automatically, as it is almost the same code for every project. Then

Re: [CMake] Function for visibility definitions

2010-02-11 Thread Hendrik Sattler
Zitat von Michael Wild them...@gmail.com: On 11. Feb, 2010, at 15:40 , Hendrik Sattler wrote: Zitat von Bill Hoffman bill.hoff...@kitware.com: That said, you could have CMake configure a .h file that had this stuff in it. It might be nice if the function did that automatically, as it is

Re: [CMake] Function for visibility definitions

2010-02-11 Thread Clinton Stimpson
On 02/11/2010 07:40 AM, Hendrik Sattler wrote: Zitat von Bill Hoffman bill.hoff...@kitware.com: That said, you could have CMake configure a .h file that had this stuff in it. It might be nice if the function did that automatically, as it is almost the same code for every project. Then once

Re: [CMake] Function for visibility definitions

2010-02-11 Thread Andreas Pakulat
On 11.02.10 16:09:34, Hendrik Sattler wrote: Zitat von Michael Wild them...@gmail.com: On 11. Feb, 2010, at 15:40 , Hendrik Sattler wrote: Zitat von Bill Hoffman bill.hoff...@kitware.com: That said, you could have CMake configure a .h file that had this stuff in it. It might be nice if

Re: [CMake] Function for visibility definitions

2010-02-11 Thread Hendrik Sattler
Zitat von Clinton Stimpson clin...@elemtech.com: If your library is only ever built as shared, sure, you don't cmake to generate code. Otherwise, the code needs that bit of information from the build system. I'd rather have a configured header file with that info in it. cmake already does that

Re: [CMake] How to avoid continuous download while using ExternalProjects

2010-02-11 Thread Luigi Calori
Hi Philip Philip Lowman wrote: On Wed, Feb 10, 2010 at 11:37 AM, David Cole david.c...@kitware.com wrote: If anybody has other ideas to share downloads between Release and Debug configurations, or other ways to avoid unnecessary downloads better, or other ideas for any ExternalProject

[CMake] Relocatable RPM

2010-02-11 Thread Will Dicharry
Is there a way to make an RPM package generated with CPack relocatable? Thanks in advance, -- Will -- Will Dicharry Software Developer Stellar Science Ltd Co smime.p7s Description: S/MIME Cryptographic Signature ___ Powered by www.kitware.com Visit

[CMake] Building paraview from source

2010-02-11 Thread J Cook
Hi Im trying to compile paraview from souce onto my computer in order to run some plugins which require the source version. My computer is currently running on Windows XP. The C compiler i am using is Microsoft Visual Studio 2008 (version 9.0). Im very new to using these types of programs and I

Re: [CMake] Building paraview from source

2010-02-11 Thread Bill Hoffman
J Cook wrote: Hi Im trying to compile paraview from souce onto my computer in order to run some plugins which require the source version. My computer is currently running on Windows XP. The C compiler i am using is Microsoft Visual Studio 2008 (version 9.0). Im very new to using these types of

Re: [CMake] ADD_DEFINITIONS and COMPILE_DEFINITIONS

2010-02-11 Thread Ryan Pavlik
No, you need to pass the definition with /D or -D: CMake internally removes that prefix before adding it to your target properties (see the property COMPILE_DEFINITIONS), and generates the build command appropriately for the platform, with either /D or -D as the platform requires. You can use

Re: [CMake] Relocatable RPM

2010-02-11 Thread Eric Noulard
2010/2/11 Will Dicharry wdicha...@stellarscience.com: Is there a way to make an RPM package generated with CPack relocatable? Should be possible, theoretically. Currently the spec file generated by CPackRPM is not. As far as I remember relocatable RPM should avoid absolute file install and use

Re: [CMake] Bison extra headers

2010-02-11 Thread Hilton Medeiros
FYI, I won't put these in the issues tracker because I really don't think these should be solved by the FindBISON module. On Thu, 11 Feb 2010 10:57:44 -0200 Hilton Medeiros medeiros.hil...@gmail.com wrote: Hello, I'm using bison_target() from FindBISON with the C++ bison interface, on CMake

Re: [CMake] Manual version vs CMake version

2010-02-11 Thread Alexander Neundorf
On Friday 05 February 2010, Mateusz Loskot wrote: Bill Hoffman wrote: Eric Noulard wrote: That's true, may be the site could indicate that the doc is for latest 2.6.x serie. However the most trustfull way to check the doc of your current cmake version is the command line. cmake

Re: [CMake] adding extra target to CMakeLists.txt

2010-02-11 Thread Olaf Peter
Tyler Roscoe schrieb: On Wed, Feb 10, 2010 at 09:08:50PM +0100, Olaf Peter wrote: How can I add an extra lint/syntax check target for my executable, like: check-syntax: c++ -o /dev/null ${CXX_FLAGS} ${CXX_DEFINES} -S ${MY_PROJECT_SOURCES} .PHONY: check-syntax You'll want to look at

Re: [CMake] adding extra target to CMakeLists.txt

2010-02-11 Thread Olaf Peter
OK, now I have it: add_custom_target (syntax-check COMMAND $(CXX) $(CXXFLAGS) -Wall -Wextra -pedantic -fsyntax-only $(CHECK_SRC) VERBATIM) But how can I get there the Defines and Includes from regular target compile? Thanks, Olaf ___ Powered by

Re: [CMake] adding extra target to CMakeLists.txt

2010-02-11 Thread Ryan Pavlik
Load them from the target using the target properties: get_directory_property(_include_dirs INCLUDE_DIRECTORIES) set(_includeflags) foreach(_dir ${_include_dirs}) list(APPEND _args ${YOURTOOL_INCLUDEPATH_ARG}${_dir}) endforeach() get_target_property(_sources ${_targetname} SOURCES)

[CMake] Examples of CMAKE_INCLUDE_TRANSFORMS or other transform rules?

2010-02-11 Thread Jeremy Nicholl
Are there any examples of how to create transform rules using e.g. CMAKE_INCLUDE_TRANSFORMS? I'm using MSYS and I ran into an issue where one of my header files has the line #include foo\bar.h // Note backslash In this case, the dependency that gets generated simply appends foo\bar.h to a

Re: [CMake] Examples of CMAKE_INCLUDE_TRANSFORMS or other transform rules?

2010-02-11 Thread Ryan Pavlik
Well, you can really just use forward slashes on all platforms - Not really an answer to your direct question but might help you with the underlying situation. Ryan On 02/11/2010 04:18 PM, Jeremy Nicholl wrote: Are there any examples of how to create transform rules using e.g.

Re: [CMake] How to turn off incremental linking for MSVC Debug and RelWithDebInfo targets?

2010-02-11 Thread Erwin Coumans
I can't find where this INCREMENTAL:YES is coming from. Is there a better way than hacking the 'cmLocalVisualStudio7Generator ::GetBuildTypeLinkerFlags' to replace INCREMENTAL:YES by INCREMENTAL:NO? Thanks a lot, Erwin

Re: [CMake] How to turn off incremental linking for MSVC Debug and RelWithDebInfo targets?

2010-02-11 Thread John Drescher
On Thu, Feb 11, 2010 at 6:46 PM, Erwin Coumans erwin.coum...@gmail.com wrote: I can't find where this INCREMENTAL:YES is coming from. Is there a better way than hacking the 'cmLocalVisualStudio7Generator ::GetBuildTypeLinkerFlags' to replace INCREMENTAL:YES by INCREMENTAL:NO? Thanks a lot,

[CMake] Questions about CPack Debian generator

2010-02-11 Thread Thawan Kooburat
Hi, I am trying to create a Debian binary package using CMake/CPack and it is quite a nice tool. I understand that CMake/CPack try to rely on external tools as little as possible but there are 2 issues that I encountered while using the Debian generator 1. Dependency list - It would save a lot