Re: [CMake] building plplot for compaq visual fortran

2010-03-08 Thread Vincenzo Urso Miano
Hello, I have been told that cmake compiles plplot with gcc. Here's whta i get: C:\plplot-5.9.5>cmake -DCMAKE_INSTALL_PREFIX=C:\plplotBUILD -- The C compiler identification is unknown -- Check for working C compiler: C:/MinGW/bin/gcc.exe -- Check for working C compiler: C:/MinGW/bin/gcc.exe -- br

Re: [CMake] CMake 2.8.1 RC 4 is ready to try

2010-03-08 Thread Micha Renner
Am Montag, den 08.03.2010, 09:30 -0500 schrieb Bill Hoffman: > Micha Renner wrote: > > > > > Yes, there are no problems with this version. > > > > > >> Did you download some other file (perhaps one with Windows line endings)? > > > > It seems so. > > Zip-files have Windows line endings? > > >

Re: [CMake] adding dependencies on generated files to source code files

2010-03-08 Thread J Decker
On Mon, Mar 8, 2010 at 6:28 PM, Tony Bridges wrote: > Hi All, > > The problem is : the files that are generated are not dependencies of the > top level target (as discussed in the article), they are dependencies of > another source file because they are generated includes.  If I add the > dependen

[CMake] adding dependencies on generated files to source code files

2010-03-08 Thread Tony Bridges
Hi All, I’m attempting to add dependencies for generated code into my builds. I have read the wiki article that J Decker posted to me in my last query http://www.vtk.org/Wiki/CMake_FAQ#How_can_I_add_a_dependency_to_a_source_file_which_is_generated_in_a_subdirectory.3F , but unfortunately, it

Re: [CMake] Change library search order

2010-03-08 Thread Ryan Pavlik
You might consider looking at the "link_directories" command. Ryan On Mon, Mar 8, 2010 at 3:46 PM, Anatoly Shirokov wrote: > Hi Alex! > > I would like to link to Platform SDK libraries instead of Visual Studio > ones. In this case there is no way to specify full path because most of > platform

Re: [CMake] Watcom Support

2010-03-08 Thread J Decker
http://public.kitware.com/Bug/view.php?id=10388 Uploaded the patch there... (actually twice, the first is a bad patch, the second is a better patch; the first changed line endings to add \r's, fixed the second one) On Mon, Mar 8, 2010 at 6:33 AM, Bill Hoffman wrote: > J Decker wrote: >> >> Ooops

Re: [CMake] This has to have been asked before...

2010-03-08 Thread Oliver kfsone Smith
Michael Wild said the following on 3/8/2010 1:35 PM: What I did is define custom functions that wrap add_executable, add_library and target_link_libraries. Works like a charm ;-) *DUH!* Thank you :) - Oliver ___ Powered by www.kitware.com Visit

Re: [CMake] Change library search order

2010-03-08 Thread Anatoly Shirokov
Hi Alex! I would like to link to Platform SDK libraries instead of Visual Studio ones. In this case there is no way to specify full path because most of platform SDK files are linked implicitly with the lib pragma (#pragma comment(lib, 'lib')). Any suggestions? BR, Anatoly Alexander Neundor

Re: [CMake] Change library search order

2010-03-08 Thread Alexander Neundorf
On Monday 08 March 2010, Anatoly Shirokov wrote: > Hi there! > > One day I wrote about this problem. I want to change a library search > order, but the target_link_libraries command does not allow me specify > the search order because there are no BEFORE and AFTER tags. Is there > another way to ch

[CMake] per-folder compiler flags

2010-03-08 Thread Tim Blechmann
hi all, out of curiosity, why is COMPILE_FLAGS a target property, while COMPILE_DEFINITIONS is both a directory and a target property? currently, i am setting CMAKE_CXX_FLAGS manually to achieve the behavior, that i need for my application ... thanks, tim -- t...@klingt.org http://tim.klingt

Re: [CMake] CMAKE_RC_FLAGS has no effect

2010-03-08 Thread James Bigler
This is also related to this bug: http://public.kitware.com/Bug/view.php?id=10194 The only way I worked around not being able to set RC flags for preprocessor items was to use configure_file with a header that was included by all of my .rc files. James On Mon, Mar 8, 2010 at 11:49 AM, David Cole

Re: [CMake] This has to have been asked before...

2010-03-08 Thread Michael Wild
What I did is define custom functions that wrap add_executable, add_library and target_link_libraries. Works like a charm ;-) Michael On 8. Mar, 2010, at 20:33 , David Cole wrote: > It is presently not possible to iterate over all the targets in > CMakeLists.txt unless you maintain your own li

Re: [CMake] This has to have been asked before...

2010-03-08 Thread David Cole
It is presently not possible to iterate over all the targets in CMakeLists.txt unless you maintain your own list of targets. It would be a good feature request to provide the full list of CMake targets using: get_cmake_property(var TARGETS) # for all targets from top le

Re: [CMake] This has to have been asked before...

2010-03-08 Thread Oliver Smith
On 3/6/2010 8:04 PM, J Decker wrote: there is a foreach() operator... Well, thanks for trying, but what I actually want to know is how to add something to all the current targets /automatically/ - as in without specifying them by hand, and how to get the compiler flags etc of a particular

Re: [CMake] CMAKE_RC_FLAGS has no effect

2010-03-08 Thread David Cole
It sounds like you may have re-discovered this bug in a slightly different form: http://public.kitware.com/Bug/view.php?id=8165 The "correct" fix for both would be generic enough to properly quote any /D args as needed for the rc compiler, the midl compiler and the C++ compiler. However, this iss

Re: [CMake] Decompressing a file with cmake

2010-03-08 Thread David Cole
Right now, it's best to assume "a distant future release" -- but there will definitely be a mention of libarchive support when it does go out. Since we just transitioned to git as our repository, we are also revisiting how we build releases. Keep your eyes open for future CMake release notes...

[CMake] Change library search order

2010-03-08 Thread Anatoly Shirokov
Hi there! One day I wrote about this problem. I want to change a library search order, but the target_link_libraries command does not allow me specify the search order because there are no BEFORE and AFTER tags. Is there another way to change the search order? Thank you for any advise. BR,

Re: [CMake] Decompressing a file with cmake

2010-03-08 Thread AKHRES Nader
It sounds exactly like what I need (I'm already in a cmake script) but I'd rather stick to an official version for my users up to now. To answer Eric and Droscy, I manage to use an external python script to uncompress (I use python already for other purpose) the downloaded file but I'd rather

Re: [CMake] Decompressing a file with cmake

2010-03-08 Thread David Cole
The "cmake -E tar ..." commands will decompress zip files, but only with CVS from the git master branch. The functionality depends on libarchive which is in the git master branch, but is not yet in a CMake release. If you need to use CMake 2.8 or earlier, you'll have to use some other external to

Re: [CMake] xcode project FOR cmake

2010-03-08 Thread Bill Hoffman
ha...@mac.com wrote: everyone: i am trying to make a custom cmake build on my mac. ideally, i would like to set up a xcode project for coding/debugging. i have downloaded sources from kitware and tried to follow instructions in the supplied readme.txt: You already have a version of CMake inst

[CMake] xcode project FOR cmake

2010-03-08 Thread hauns
everyone: i am trying to make a custom cmake build on my mac. ideally, i would like to set up a xcode project for coding/debugging. i have downloaded sources from kitware and tried to follow instructions in the supplied readme.txt: > You already have a version of CMake installed > -

Re: [CMake] Watcom Support

2010-03-08 Thread Bill Hoffman
J Decker wrote: Ooops, missed a linker line that needed added. Also, apparently, the _DEBUG_ modes of C flags dropped the -d2 for writing debug info out. Attattched modified windows-wcl386.cmake. Can you create a bug report and attach the patch? Thanks. -- Bill Hoffman Kitware, Inc. 28 Cor

Re: [CMake] CMake 2.8.1 RC 4 is ready to try

2010-03-08 Thread Bill Hoffman
Micha Renner wrote: Yes, there are no problems with this version. Did you download some other file (perhaps one with Windows line endings)? It seems so. Zip-files have Windows line endings? http://www.cmake.org/cmake/resources/software.html Windows Source (has \r\n line feeds)cmake-2

Re: [CMake] Decompressing a file with cmake

2010-03-08 Thread Eric Noulard
2010/3/8 Droscy : > AKHRES Nader ha scritto: >> is it possible to uncompress a zip file with cmake? > One solution could be writing the Find7Zip.cmake file in order to get > the executable and use it to uncompress the downloaded file... > > I know that this solution is not very easy, but it is a so

[CMake] [CTEST] No CDash submission if error at configure step

2010-03-08 Thread Olivier Pierard
Dear all, I'm using CTest script in order to configure/build/test with CMake and submit results to a dashboard. I noticed that if an error occurred at configure step, the script is not going further on but I guess it would submit the configure error message to the dashboard, which is not the case

Re: [CMake] Decompressing a file with cmake

2010-03-08 Thread Droscy
AKHRES Nader ha scritto: > is it possible to uncompress a zip file with cmake? One solution could be writing the Find7Zip.cmake file in order to get the executable and use it to uncompress the downloaded file... I know that this solution is not very easy, but it is a solution :-) ___