On 04/04/2013 09:45 AM, Robert Maynard wrote:
My current work in progress on this problem can be found
To follow up on this, I've just merged a topic Robert implemented
(to add the phony rules) to master:
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=539356f1
On 02.04.2013 15:19, Brad King wrote:
Hi Peter,
We've come across a case where the Makefile, VS, and Xcode generators
work but Ninja does not::
cmake_minimum_required(VERSION 2.8.10)
project(DependSideEffect C)
add_library(A a.c)
add_custom_command(
TARGET A POST_BUILD
COMMAND
On 04/04/2013 07:57 AM, Peter Kümmel wrote:
On 02.04.2013 15:19, Brad King wrote:
build libA.a: C_STATIC_LIBRARY_LINKER CMakeFiles/A.dir/a.c.o
POST_BUILD = cd .../build cp .../a.c a.txt
In build.ninja is no rule for coping a.c to a.txt at all.
Seems support for
My current work in progress on this problem can be found at:
https://github.com/robertmaynard/CMake/tree/ninja_phony_file_targets
On Thu, Apr 4, 2013 at 8:20 AM, Brad King brad.k...@kitware.com wrote:
On 04/04/2013 07:57 AM, Peter Kümmel wrote:
On 02.04.2013 15:19, Brad King wrote:
On Tue, Apr 2, 2013 at 9:19 AM, Brad King brad.k...@kitware.com wrote:
...
a side effect? Is there another way to do this in CMake's Ninja gen?
Yes I have found a way we can do this in CMake's Ninja generator.
The Ninja generator needs to be taught to create phony ninja targets for
any file
Hi Peter,
We've come across a case where the Makefile, VS, and Xcode generators
work but Ninja does not::
cmake_minimum_required(VERSION 2.8.10)
project(DependSideEffect C)
add_library(A a.c)
add_custom_command(
TARGET A POST_BUILD
COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/a.c a.txt
)
On 2013-04-02 09:19, Brad King wrote:
Hi Peter,
We've come across a case where the Makefile, VS, and Xcode generators
work but Ninja does not::
cmake_minimum_required(VERSION 2.8.10)
project(DependSideEffect C)
add_library(A a.c)
add_custom_command(
TARGET A POST_BUILD
COMMAND
On 04/02/2013 11:35 AM, Matthew Woehlke wrote:
Why are the rules set up like this and not such that b.txt depends on A?
A and B are separate CMake logical targets. There is no concept
in CMake of a file depending on a logical target. There is no
way to express that in the generated VS or