Re: [CMake] Feature requests for CMake-GUI

2010-01-18 Thread Michael Wild
On 14. Jan, 2010, at 18:41 , Alexander Neundorf wrote: On Thursday 14 January 2010, Michael Wild wrote: On 14. Jan, 2010, at 10:43 , Michael Wild wrote: Hi all I normally never use cmake-gui, but did so for writing installation instructions. While doing so I came across some oddities and

Re: [CMake] dependency hell with custom commands and multiple outputs

2010-01-18 Thread Michael Wild
Yes, it worked for me. But, as I already mentioned, be careful to mark the files as GENERATED and add them to the ADDITIONAL_MAKE_CLEAN_FILES directory property. One caveat is, however, that if you delete any of the output files, CMake won't regenerate them unless you also delete the stamp

Re: [CMake] dependency hell with custom commands and multiple outputs

2010-01-18 Thread Romain CHANU
Hi Michael. I got the same situation here. I am using a command which outputs a lot of files (100 files). Have you tried what David is suggesting? Thank you to update us. Cheers, 2010/1/13 Michael Wild them...@gmail.com Hmmm, thought of something like that myself, but am not sure whether

Re: [CMake] dependency hell with custom commands and multiple outputs

2010-01-18 Thread Romain CHANU
Yes I knew for the GENERATED option. This solution is a good work-around but still, it would be nice if CMake could handle the situation this way: # Generate Java / XML binding files add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/src/*.java COMMAND ${JAVA_PATH}/xjc

[CMake] Double @-substitution and configure_file()??

2010-01-18 Thread Marcel Loose
Hi all, Is it possible to somehow do a double @-substitution when using, e.g., configure_file, similar to a double ${${...}} construct. $ cat myvar.cmake message(STATUS @my...@=@@MYVAR@@) message(STATUS ${MYVAR}=${${MYVAR}}) $ cmake -D MYVAR=Hello -D Hello=Hello World -P myvar.cmake --

Re: [CMake] dependency hell with custom commands and multiple outputs

2010-01-18 Thread Romain CHANU
Thank you for your explanations. It makes sense indeed. I will try what you have suggested before and see how it goes. Thank you again for your help. Cheers, 2010/1/18 David Cole david.c...@kitware.com On Mon, Jan 18, 2010 at 10:14 AM, Romain CHANU romainch...@gmail.comwrote: Yes I knew

Re: [CMake] dependency hell with custom commands and multiple outputs

2010-01-18 Thread David Cole
On Mon, Jan 18, 2010 at 10:14 AM, Romain CHANU romainch...@gmail.comwrote: Yes I knew for the GENERATED option. This solution is a good work-around but still, it would be nice if CMake could handle the situation this way: # Generate Java / XML binding files add_custom_command( OUTPUT

[CMake] XBox 360 Generator

2010-01-18 Thread David Genest
Hi I started to implement a Xbox360 generator based on the Win 64 GlobalGenerator variation (which is a different platform, treated similarly as a Xbox 360 platform). Everything is in place (for the visual studio generator as a first step). When I run the generator, I am not able to compile a

Re: [CMake] dependency hell with custom commands and multiple outputs

2010-01-18 Thread Romain CHANU
Michael, How do you generate your sentinel or stamp used by your add_custom_command? Cheers, Romain 2010/1/18 Michael Wild them...@gmail.com Yes, it worked for me. But, as I already mentioned, be careful to mark the files as GENERATED and add them to the ADDITIONAL_MAKE_CLEAN_FILES

Re: [CMake] ANN: UseOcaml.cmake

2010-01-18 Thread Moreland, Kenneth
The reason the UseLATEX.cmake script copies files to the binary directory is because the latex compiler has no equivalent to the -I flag. It always looks for files with respect to the directory in which the command was run. Thus, the easiest way to do an out-of-source build is to simply copy

Re: [CMake] dependency hell with custom commands and multiple outputs

2010-01-18 Thread Michael Wild
set(srcs ...) set(output ...) set(target ...) set(stamp-file ${CMAKE_CURRENT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/precompile/${target}.stamp) add_custom_command( OUTPUT ${stamp-file} COMMAND command-to-precompile ${srcs} COMMAND ${CMAKE_COMMAND} -E touch ${stamp-file} DEPENDS ${srcs}

[CMake] RoadMap

2010-01-18 Thread Johannes Felten
Hi there, I haven't found any information about a CMake roadmap. Are there any concrete plans about the release of CMake 2.9 yet? Greetings, Johannes Felten ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] RoadMap

2010-01-18 Thread John Drescher
I haven't found any information about a CMake roadmap. Are there any concrete plans about the release of CMake 2.9 yet? 2.9 is a development build. Even numbers are released while odd ones are development. As for your question I do not know. But I can safely say it will not be in this quarter

Re: [CMake] Double @-substitution and configure_file()??

2010-01-18 Thread Michael Jackson
I came across the same problem. I never really found a suitable working solution. ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software

Re: [CMake] Double @-substitution and configure_file()??

2010-01-18 Thread David Cole
On Mon, Jan 18, 2010 at 10:28 AM, Marcel Loose lo...@astron.nl wrote: Hi all, Is it possible to somehow do a double @-substitution when using, e.g., configure_file, similar to a double ${${...}} construct. $ cat myvar.cmake message(STATUS @my...@=@@MYVAR@@) message(STATUS

Re: [CMake] ANN: UseOcaml.cmake

2010-01-18 Thread Keyan
thanks for the explanation. i hope you didnt feel offended. the uselatex.cmake is great. without that, i wouldn't even had a clue where to start :) cheers, keyan On 18 Jan 2010, at 17:12, Moreland, Kenneth wrote: The reason the UseLATEX.cmake script copies files to the binary directory is

[CMake] Precompiled headers for Mac OS X

2010-01-18 Thread John Clayton
Hi there Is there a way to set up precompiled headers for Mac OS X (10.5 and 10.6) using CMake? I've seen some doco on how its done for Win32, but none for the Mac system yet. Any help appreciated. Thanks, -- John Clayton ___ Powered by

Re: [CMake] Question about dependencies for install (FILES...)

2010-01-18 Thread Alexander Neundorf
On Saturday 16 January 2010, you wrote: ... Thanks ;) That will help in this case as flex is fast, but I have the same problem with other files which need some time for generation and should not be regenerated on any make call. Is there any other way, to create a target which requires the

Re: [CMake] ANN: UseOcaml.cmake

2010-01-18 Thread Judicaƫl Bedouet
Hi, Effectively, I have reproduced your two bugs by using make -j. It's not systematic (once in ten). Error: The file /Users/zahedi/Downloads/code-analysis-build/io.cmo is not a bytecode object file When this error occurs, it also appears that the object is being built. And if I rerun make,

[CMake] Feature request: list(UNIQUE list)

2010-01-18 Thread Mateusz Loskot
Hi, There is SORT command for lists: list(SORT list) I believe it would make sense to have UNIQUE command too: list(UNIQUE list) unless it's already available and I've not read the doc carefully, have I? Perhaps it would be trivial to implement by CMake gurus :-) Best regards, -- Mateusz

[CMake] Warning D9025 : overriding '/W3' with '/W4'

2010-01-18 Thread Mateusz Loskot
Hi, In CMakeLists.txt I have something like this: if(MSVC) set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} /W4) endif() I configure my build using command prompt of Visual Studio 2005 (8.0): D:\dev\geos\_svn\build-nmakecmake -G NMake Makefiles ..\trunk and the compiler flags look as follows:

Re: [CMake] Feature request: list(UNIQUE list)

2010-01-18 Thread Tyler Roscoe
On Tue, Jan 19, 2010 at 12:17:04AM +, Mateusz Loskot wrote: I believe it would make sense to have UNIQUE command too: list(UNIQUE list) unless it's already available and I've not read the doc carefully, have I? It's called REMOVE_DUPLICATES. tyler

[CMake] Feature request: list(UNIQUE list)

2010-01-18 Thread Mateusz Loskot
Hi, There is SORT command for lists: list(SORT list) I believe it would make sense to have UNIQUE command too: list(UNIQUE list) unless it's already available and I've not read the doc carefully, have I? Perhaps it would be trivial to implement by CMake gurus :-) Best regards, -- Mateusz

[CMake] Warning D9025 : overriding '/W3' with '/W4'

2010-01-18 Thread Mateusz Loskot
Hi, In CMakeLists.txt I have something like this: if(MSVC) set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} /W4) endif() I configure my build using command prompt of Visual Studio 2005 (8.0): D:\dev\geos\_svn\build-nmakecmake -G NMake Makefiles ..\trunk and the compiler flags look as follows:

Re: [CMake] Warning D9025 : overriding '/W3' with '/W4'

2010-01-18 Thread Philip Lowman
On Mon, Jan 18, 2010 at 7:17 PM, Mateusz Loskot mate...@loskot.net wrote: Hi, In CMakeLists.txt I have something like this: if(MSVC) set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} /W4) endif() I configure my build using command prompt of Visual Studio 2005 (8.0):

Re: [CMake] ANN: UseOcaml.cmake

2010-01-18 Thread Keyan
hi, i had the same problems before i wrote my useocaml.cmake. actually, that was the main reasons for writing it. i solved the problems by getting all the depencies right. my guess is, that a few additional add_depencies will solve the problem. as soon as i have a little bit time, i will check