[cmake-developers] [CMake 0012565]: CBP Generator produces malformed XML - QtCreator integration broken

2011-11-09 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://www.cmake.org/Bug/view.php?id=12565 == Reported By:Thomas McGuire Assigned To:

Re: [cmake-developers] [PATCH 0/7] Preparation for Ninja generator: refactorings, bug fixes

2011-11-09 Thread Peter Collingbourne
On Tue, Oct 04, 2011 at 11:21:00PM +0200, Peter Kümmel wrote: On 04.10.2011 23:19, Peter Kümmel wrote: On 03.10.2011 15:03, Brad King wrote: On 10/2/2011 1:41 PM, Peter Collingbourne wrote: I have modified the commit message to include more details, and pushed a modified branch to github.

Re: [cmake-developers] [PATCH 0/7] Preparation for Ninja generator: refactorings, bug fixes

2011-11-09 Thread Alexander Neundorf
On Wednesday 09 November 2011, Peter Collingbourne wrote: On Tue, Oct 04, 2011 at 11:21:00PM +0200, Peter Kümmel wrote: On 04.10.2011 23:19, Peter Kümmel wrote: On 03.10.2011 15:03, Brad King wrote: On 10/2/2011 1:41 PM, Peter Collingbourne wrote: I have modified the commit message to

[cmake-developers] [CMake 0012566]: REGRESSION: CMake suppresses /SUBSYSTEM linker flag

2011-11-09 Thread Mantis Bug Tracker
The following issue has been SUBMITTED. == http://public.kitware.com/Bug/view.php?id=12566 == Reported By:Gili Assigned To:

Re: [CMake] Multiple platforms/configurations

2011-11-09 Thread Tom Deblauwe
What exactly do you do with that PORT variable in your CMakeLists.txt file? Perhaps, you might simply map different values to configuration- specific properties like COMPILE_DEFINITIONS_CONFIG. If you do more complicated things based on the PORT variable's value, please provide more information,

Re: [CMake] [patch] add XRes to FindX11.cmake

2011-11-09 Thread David Cole
Applied: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0e721e512941c7f7aa51116c3291dfa198b5fccb If you use git, please use git format-patch -1 after making a commit to prepare future patches. That makes it slightly easier for us to apply patches and test them out. Plus, it automatically

Re: [CMake] Multiple platforms/configurations

2011-11-09 Thread David Cole
The CMake Visual Studio generators do not presently support multiple platforms in the same Visual Studio project file. Moreover, they do not presently support anything beyond 32- and 64-bit Windows targets. You will need separate solution and project files for separate platforms, or you will need

Re: [CMake] [patch] add XRes to FindX11.cmake

2011-11-09 Thread Dan Kegel
On Wed, Nov 9, 2011 at 3:42 AM, David Cole david.c...@kitware.com wrote: I assume that your moving of the line related to X11_Xv_INCLUDE_PATH was unintentional, so I left it out of the above commit. Yeah, that was sloppy of me, thanks. This patch was hacked together on a live system, but next

[CMake] Per configuration ADD_CUSTOM_COMMAND

2011-11-09 Thread Ludovic Hoyet
Hi, I have different projects that generate a .lib and a .dll file, and I would like to copy these 2 files in a given directory as a post-build event. My main problem is that my debug libraries are post-fixed with _d, which require that I use the following code: SET(MY_PROJECT project)

Re: [CMake] Per configuration ADD_CUSTOM_COMMAND

2011-11-09 Thread Rolf Eike Beer
Hi, I have different projects that generate a .lib and a .dll file, and I would like to copy these 2 files in a given directory as a post-build event. My main problem is that my debug libraries are post-fixed with _d, which require that I use the following code: SET(MY_PROJECT project)

Re: [CMake] Generated CMakeLists.txt

2011-11-09 Thread Łukasz Tasz
Hi Michael, Hi all, The workflow you described works fine, with one remark, cmake phase will be triggered each time when input for generator is changing, it means reconfiguration will happen even in cases it's not needed. The issue is that as I wrote: The setup looks like: generator has some

Re: [CMake] Multiple platforms/configurations

2011-11-09 Thread Tom Deblauwe
On Wednesday 09 November 2011 12:45:43 David Cole wrote: The CMake Visual Studio generators do not presently support multiple platforms in the same Visual Studio project file. Moreover, they do not presently support anything beyond 32- and 64-bit Windows targets. You will need separate

Re: [CMake] Per configuration ADD_CUSTOM_COMMAND

2011-11-09 Thread Ludovic Hoyet
I just tried it (maybe I did something wrong) but it does not work: ADD_CUSTOM_COMMAND(TARGET ${MY_PROJECT } POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy $TARGET_FILE:${MY_PROJECT } ${EXTERNAL_DIR} VERBATIM) ADD_CUSTOM_COMMAND(TARGET ${MY_PROJECT } POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy

Re: [CMake] Per configuration ADD_CUSTOM_COMMAND

2011-11-09 Thread David Cole
There are also generator expressions for TARGET_LINKER_FILE and TARGET_SONAME_FILE -- have you tried those? I think when the target is a .dll, the TARGET_LINKER_FILE expression yields the name of the corresponding .lib file... HTH, David On Wed, Nov 9, 2011 at 10:28 AM, Ludovic Hoyet

Re: [CMake] Multiple platforms/configurations

2011-11-09 Thread David Cole
On Wed, Nov 9, 2011 at 10:21 AM, Tom Deblauwe tom.debla...@traficon.com wrote: On Wednesday 09 November 2011 12:45:43 David Cole wrote: The CMake Visual Studio generators do not presently support multiple platforms in the same Visual Studio project file. Moreover, they do not presently support

[CMake] Problem with cmake cross-compiling - make complains of missing header.

2011-11-09 Thread Thomas Walwyn
Hi All, I'm brand-new to cmake, and have run into a problem cross compiling for an Intel embedded platform: Make complains about missing file 'curl/curl.h' when compiling against an Intel SDK for linux. 'curl/curl.h' resides in the cross-compile toolchain under

[CMake] Using CTest with a different dashboard

2011-11-09 Thread EXT-York, Gantry
I'm looking for suggestions from someone who has used CTest to report results to a dashboard other than CDash. I'd like to be able to simply type gmake test TESTOPTS=-report then have CTest traverse all the directories and run the defined tests. Not only would I like it to run these tests,

Re: [CMake] Per configuration ADD_CUSTOM_COMMAND

2011-11-09 Thread Ludovic Hoyet
That's perfect, TARGET_LINKER_FILE exactly did the job Thanks a million Ludo 2011/11/9 David Cole david.c...@kitware.com There are also generator expressions for TARGET_LINKER_FILE and TARGET_SONAME_FILE -- have you tried those? I think when the target is a .dll, the TARGET_LINKER_FILE

Re: [CMake] Problem with cmake cross-compiling - make complains of missing header.

2011-11-09 Thread Eric Noulard
2011/11/9 Thomas Walwyn thomas.wal...@uec.co.za: Hi All, I’m brand-new to cmake, and have run into a problem cross compiling for an Intel embedded platform: Make complains about missing file 'curl/curl.h' when compiling against an Intel SDK for linux. 'curl/curl.h' resides in the

[CMake] CPack Generator jar support

2011-11-09 Thread Alexander Broekhuis
Hi all, It is possible to add a custom generator to cpack? What I'd like to have is a generator for Jar files. I know a jar file is basically the same as a zip file, but there is one distinct difference, the Manifest directory is always at the start of the file. For a specific solution I am

Re: [CMake] CPack Generator jar support

2011-11-09 Thread David Cole
Adding a generator will require C++ modifications to the CPack code... On Wed, Nov 9, 2011 at 2:31 PM, Alexander Broekhuis a.broekh...@gmail.com wrote: Hi all, It is possible to add a custom generator to cpack? What I'd like to have is a generator for Jar files. I know a jar file is

Re: [CMake] CPack Generator jar support

2011-11-09 Thread Eric Noulard
2011/11/9 David Cole david.c...@kitware.com: Adding a generator will require C++ modifications to the CPack code... but knowing that a jar file is a zip file subclassing cmCPackArchiveGenerator.[h|cxx] to cmCPackJARGenerator.[h|cxx] in the same way cmCPackZIPGenerator does should be fairly

[CMake] Fwd: CPack Generator jar support

2011-11-09 Thread Alexander Broekhuis
Now also sending the message to the list. I'm too used to a reply-to to a list ;) -- Forwarded message -- From: Alexander Broekhuis a.broekh...@gmail.com Date: 2011/11/9 Subject: Re: [CMake] CPack Generator jar support To: Eric Noulard eric.noul...@gmail.com the real question

[CMake] Custom targets that traverse subdirectories

2011-11-09 Thread EXT-York, Gantry
How do I define a custom target and have it traverse the source tree? I'm using add_custom_target( specialtest COMMAND rel/path/to/test_script ) However, I need to add other commands to this target that come from scripts in subdirectories. Gantry York Chandler, Arizona -- Powered

Re: [CMake] Custom targets that traverse subdirectories

2011-11-09 Thread Łukasz Tasz
Hi As far as I understood your problem correctly: in main cmakelists create target that will agregate subtargets: main_cmake: add_custom_target(aggr_target) add_subdirectory(a) add_subdirectory(b) a/CMakeLists.txt add_custom_target(a_special_test COMMAND specialtest)

Re: [CMake] Custom targets that traverse subdirectories

2011-11-09 Thread EXT-York, Gantry
And the command specialtest is executed out of the build tree? This is what I'm doing now CMakeLists.txt add_custom_target(aggr_target) add_subdirectory(a) add_subdirectory(b) a/CMakeLists.txt add_executable( specialtest1 IMPORTED ) add_custom_target(a_special_test COMMAND specialtest1)

[CMake] CMake stripping /SUBSYSTEM out of LINK_FLAGS

2011-11-09 Thread cowwoc
Hi, I'm using CMAKE 2.8.6 with Visual Studio 2010 Express. According to http://www.cmake.org/Wiki/VSConfigSpecificSettings I should be able run: set_target_properties(main PROPERTIES LINK_FLAGS /SUBSYSTEM:WINDOWS) where main is my project, but I've discovered that CMake strips

Re: [CMake] CMake stripping /SUBSYSTEM out of LINK_FLAGS

2011-11-09 Thread cowwoc
cowwoc wrote: Hi, I'm using CMAKE 2.8.6 with Visual Studio 2010 Express. According to http://www.cmake.org/Wiki/VSConfigSpecificSettings I should be able run: set_target_properties(main PROPERTIES LINK_FLAGS /SUBSYSTEM:WINDOWS) where main is my project, but I've discovered that

[CMake] Adding a new language

2011-11-09 Thread Stefan Monnier
I'm trying to use cmake for a project using OCaml, so I'm trying to add support for a new language. Among the many problems I encounter, the most pressing is the following: the rule to build object files (CMAKE_OCaml_COMPILE_OBJECT) seems to want a command that takes SOURCE and generates OBJECT,

Re: [CMake] Generated CMakeLists.txt

2011-11-09 Thread Michael Hertling
On 11/09/2011 04:27 PM, Łukasz Tasz wrote: Hi Michael, Hi all, The workflow you described works fine, with one remark, cmake phase will be triggered each time when input for generator is changing, it means reconfiguration will happen even in cases it's not needed. The issue is that as I

Re: [CMake] Custom targets that traverse subdirectories

2011-11-09 Thread Michael Hertling
On 11/10/2011 12:25 AM, EXT-York, Gantry wrote: And the command specialtest is executed out of the build tree? This is what I'm doing now CMakeLists.txt add_custom_target(aggr_target) add_subdirectory(a) add_subdirectory(b) a/CMakeLists.txt add_executable( specialtest1 IMPORTED )

Re: [CMake] Adding a new language

2011-11-09 Thread Hendrik Sattler
Am 09.11.2011 23:00, schrieb Stefan Monnier: I'm trying to use cmake for a project using OCaml, so I'm trying to add support for a new language. Among the many problems I encounter, the most pressing is the following: the rule to build object files (CMAKE_OCaml_COMPILE_OBJECT) seems to want a

Re: [CMake] CPack Generator jar support

2011-11-09 Thread Eric Noulard
2011/11/9 Alexander Broekhuis a.broekh...@gmail.com: Hi Eric, By the way did you try the ZIP generator with set(CPACK_INSTALLED_DIRECTORIES /path/to/META-INF;/META-INF) if some local (to the build) directory /path/to/META-INF contains the appropriate MANIFEST.MF and INDEX.LIST your jar

Re: [CMake] Adding a new language

2011-11-09 Thread Eric Noulard
2011/11/9 Stefan Monnier monn...@iro.umontreal.ca: I'm trying to use cmake for a project using OCaml, so I'm trying to add support for a new language. Just in case you weren't aware of that. There has been [several] discussions on the ML in the past concerning CMake OCaml support at least this

[Cmake-commits] CMake branch, next, updated. v2.8.6-1824-g8b14b36

2011-11-09 Thread David Cole
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 8b14b365c5a7a71f461515093b8f8a4f1e55697c (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.6-1827-g6fe404e

2011-11-09 Thread Stephen Kelly
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 6fe404e26378f026f3d730dc985a933b09252e0d (commit) via