The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12872 
====================================================================== 
Reported By:                freddie
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12872
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-01-11 19:12 EST
Last Modified:              2012-01-11 19:12 EST
====================================================================== 
Summary:                    cmake fails to produce a *unique* object file name
and causes name collisions
Description: 
cmake attempts to use the same object file name for

${CMAKE_CURRENT_SOURCE_DIR}/a.cpp
${CMAKE_CURRENT_BINARY_DIR}/a.cpp

despite the statement of uniqueness in the documentation entry for
CMAKE_OBJECT_PATH_MAX. (The second file is generated, e.g., by bison, ragel
etc.)

This causes a warning and an incorrectly generated makefile rule:

Warning: Source file "${CMAKE_CURRENT_BINARY_DIR}/a.cpp" is listed multiple
times for target "xxx".

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-01-11 19:12 freddie        New Issue                                    
======================================================================

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to