[cmake-developers] [CMake 0015715]: COMMAND item of "add_custom_command" produce incorrect build.make

Mantis Bug Tracker mantis at public.kitware.com
Thu Aug 27 21:26:24 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15715 
====================================================================== 
Reported By:                shuaiw
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15715
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2015-08-27 21:26 EDT
Last Modified:              2015-08-27 21:26 EDT
====================================================================== 
Summary:                    COMMAND item of "add_custom_command" produce
incorrect build.make
Description: 
add_custom_command(OUTPUT xele_mdapi.signature
        COMMAND echo Xele-MD API Revision:${LASTREV} | tee xele_mdapi.signature
        WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
        VERBATIM
        COMMENT "Produce signature"
)

Steps to Reproduce: 
build in clion 1.1 OR 
enter ${CMAKE_HOME_DIRECTORY}/_build
cmake ..

Additional Information: 
partof generated build.make:
XeleMdAPI64/xele_mdapi.signature:
    @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold
--progress-dir=/home/shuaiw/sw/trunk/xele_md/modules/xeleAPI-NMR-CMake/_build/CMakeFiles
--progress-num=$(CMAKE_PROGRESS_3) "Produce signature"
    cd /home/shuaiw/sw/trunk/xele_md/modules/xeleAPI-NMR-CMake/XeleMdAPI64 &&
echo Xele-MD API Revision:820
 | tee xele_mdapi.signature ## this is newline

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-08-27 21:26 shuaiw         New Issue                                    
======================================================================



More information about the cmake-developers mailing list