Re: [CMake] Run custom command only when dependency changes

2014-04-01 Thread Lloyd
On Tue, Apr 1, 2014 at 12:55 PM, Nils Gladitz wrote: > SET (MY_SRC Event_log.h other.cpp other1.cpp) >> >> ADD_EXECUTABLE(MyExe ${MY_SRC } >> >> add_custom_command(OUTPUT Event_log.h COMMAND mc Event_log.mc >> WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS Event_log.mc) >> >> Whenever I ru

Re: [CMake] Fwd: [PATCH] Add support for Metro apps

2014-04-01 Thread Gilles Khouzam
This is great Paul. I would love nothing more than to combine resources. I'll take a look at your branches to understand what you've done. I'd love to see all these efforts merged together and be available for the community. ~Gilles -Original Message- From: Paul Annetts [mailto:p...@l

Re: [CMake] CMake Digest, Vol 119, Issue 41

2014-04-01 Thread wim
On 2014-03-27 09:35, cmake-requ...@cmake.org wrote: Send CMake mailing list submissions to cmake@cmake.org To subscribe or unsubscribe via the World Wide Web, visit http://www.cmake.org/mailman/listinfo/cmake or, via email, send a message with subject or body 'help' to c

Re: [CMake] Fwd: [PATCH] Add support for Metro apps

2014-04-01 Thread David Cole
> From: Dan Kegel > Sent: Mon, Mar 31, 2014 10:20 am > > On Mon, Mar 31, 2014 at 7:13 AM, David Cole wrote: >> It will be cool to be able to build Metro apps using CMake. > > Well, aside from the obvious problem :-) Well .. obviously. ;-) -- Powered by www.kitware.com Please keep messa

Re: [CMake] Clarification for handling of semicolons in parameters

2014-04-01 Thread SF Markus Elfring
> The application "CMake GUI 2.8.12.2" reports some "internal errors" as I would > expect it if I dare to use the following setting. I expected that my example command "configure_file" will fail somehow. But the shown error messages do not fit to my expectations so far. I suggest to take a closer

Re: [CMake] Fwd: [PATCH] Add support for Metro apps

2014-04-01 Thread Paul Annetts
Hi Gilles, I have done some work to extend CMAKE so that it generates projects that support the different platforms of Windows Phone (x86/ARM) inside a single SLN in exactly this way, and I sent a patch to the dev-list last year. It is currently being used on a large scale cross-platform proje

Re: [CMake] Run custom command only when dependency changes

2014-04-01 Thread Nils Gladitz
SET (MY_SRC Event_log.h other.cpp other1.cpp) ADD_EXECUTABLE(MyExe ${MY_SRC } add_custom_command(OUTPUT Event_log.h COMMAND mc Event_log.mc WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS Event_log.mc) Whenever I run the build command, this causes the "mc" to rerun each time (even if the