The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=14972
======================================================================
Reported By: Adam Strzelecki
Assigned To:
======================================================================
Project: CMake
Issue ID: 14972
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2014-06-12 14:02 EDT
Last Modified: 2014-06-12 14:02 EDT
======================================================================
Summary: Ninja gen generates invalid phony dependencies for
source files with in-source build
Description:
Related commit
==========
539356f1 Ninja: Custom Command file depends don't need to exist before building
Description
=======
Commit above creates phony dependencies for all files that are dependencies to
project outputs and reside in build folder. Unfortunately when using in-source
build this behavior causes all source files to have phony dependency which is
undesired behavior.
I don't see simple workaround, as I frankly don't understand the reasoning
behind the change above.
Steps to Reproduce:
Setup following for in-source build with Ninja generator, then inspect generated
build.ninja has phony dependency for test.cc, which is undesired.
CMakeLists.txt
=========
cmake_minimum_required(VERSION 2.6)
project(NinjaTest CXX)
add_executable(ninja_test test.cc)
test.cc
=====
int main(int argc, char const *argv[]) { return 0; }
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-06-12 14:02 Adam StrzeleckiNew 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/cgi-bin/mailman/listinfo/cmake-developers