The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=14532
======================================================================
Reported By: Steve Wolak
Assigned To:
======================================================================
Project: CMake
Issue ID: 14532
Category: CMake
Reproducibility: always
Severity: crash
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-10-31 11:10 EDT
Last Modified: 2013-10-31 11:10 EDT
======================================================================
Summary: CMake internal error: cmTarget::GetOutputInfo
Description:
I created an object library and then attempted to reference the target in a
custom command using $<TARGET_FILE:tgt>. This caused the following:
cmTarget::GetOutputInfo called for my_obj which has type OBJECT_LIBRARY
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
System error 768.
Steps to Reproduce:
Using CMake for Win32 on Windows 7 x64
Create an object target:
add_library(my_obj OBJECT my_src.cpp)
Use the object target in a shared library:
add_library(my_lib SHARED $<TARGET_OBJECTS:sc_lo_obj> my_lib.rc)
Attempt to copy the object target using a custom command (a post build command
on the library):
add_custom_command (TARGET my_lib
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:my_obj>
${OUTPUT_DIR}/my_obj_renamed.obj
)
Additional Information:
I was looking for a way to copy an object file from the intermediate directory
to a directory of our choosing. Seeing the OBJECT library option, I figured I'd
give this a shot to see what would happen.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-10-31 11:10 Steve Wolak 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