The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=15454 ====================================================================== Reported By: Daniel Dunbar Assigned To: ====================================================================== Project: CMake Issue ID: 15454 Category: CMake Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2015-03-17 20:19 EDT Last Modified: 2015-03-17 20:19 EDT ====================================================================== Summary: Ninja generator should not generate phony commands with cyclic dependency Description: The Ninja generator frequently will generate commands of the form: -- build testCCompiler.c: phony testCCompiler.c -- (taken from the build.ninja generated for the initial "-- Check for working C compiler using: Ninja" step).
This command specifies a cyclic dependency, even though Ninja itself does not generally error on it: https://github.com/martine/ninja/issues/935 Steps to Reproduce: Here is a self contained example: -- $ cat CMakeLists.txt cmake_minimum_required(VERSION 3.0) add_custom_command(OUTPUT foo.tmp DEPENDS foo.c COMMAND true) add_custom_target(foo DEPENDS foo.tmp) $ cmake -GNinja . -- Configuring done -- Generating done -- Build files have been written to: /tmp/foo $ grep "foo.c:" build.ninja build foo.c: phony foo.c -- ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2015-03-17 20:19 Daniel Dunbar New Issue ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
