The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14860
======================================================================
Reported By: kurt.dupont
Assigned To:
======================================================================
Project: CMake
Issue ID: 14860
Category: CMake
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2014-04-02 10:05 EDT
Last Modified: 2014-04-02 10:05 EDT
======================================================================
Summary: cmake and ninja on windows generate a command with
an rsp file that's not understood by the link command
Description:
Following lines are generated in rules.ninja
#############################################
# Rule for linking ASM static library.
rule ASM_STATIC_LIBRARY_LINKER
command = cmd.exe /c $PRE_LINK && armar -r $out $LINK_FLAGS $in && $POST_BUILD
description = Linking ASM static library $out
#############################################
# Rule for linking ASM static library.
rule ASM_STATIC_LIBRARY_LINKER_RSP_FILE
command = cmd.exe /c $PRE_LINK && armar -r $out $LINK_FLAGS @$RSP_FILE &&
$POST_BUILD
description = Linking ASM static library $out
rspfile = $RSP_FILE
rspfile_content = $in_newline $LINK_PATH $LINK_LIBRARIES
The armar command takes --via=${RSP_FILE} as a redirection mechanism
The armar command is defined in my toolchain file as :
set(CMAKE_${lang}_CREATE_STATIC_LIBRARY "<CMAKE_AR> -r <TARGET> <LINK_FLAGS>
<OBJECTS>")
I found no documentation on the <OBJECTS> token on when this is defined, how
this can be used. Is there any way that i can detect/force the use of an rsp
file AND influence the string used (@) to indicate the redirection to a file
(--via=)?
Additional Information:
The actual command issued
cmd.exe /c cd . && armar -r
third-party\threadx\src\threadx_ptp_arm_cortexr4.lib
@CMakeFiles/threadx_ptp.rsp && cd .
Error: L6833E: File '@CMakeFiles/threadx_ptp.rsp' does not exist
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-04-02 10:05 kurt.dupont 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/cgi-bin/mailman/listinfo/cmake-developers