MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014532 | CMake | CMake | public | 2013-10-31 11:10 | 2014-06-02 08:37 |
Reporter | Steve Wolak | ||||
Assigned To | Brad King | ||||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Windows | OS | Windows | OS Version | 7 x64 |
Product Version | CMake 2.8.12 | ||||
Target Version | CMake 2.8.12.1 | Fixed in Version | CMake 2.8.12.1 | ||
Summary | 0014532: 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. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-10-31 11:10 | Steve Wolak | New Issue | |||
2013-11-01 10:30 | Brad King | Note Added: 0034304 | |||
2013-11-01 10:30 | Brad King | Assigned To | => Brad King | ||
2013-11-01 10:30 | Brad King | Status | new => resolved | ||
2013-11-01 10:30 | Brad King | Resolution | open => fixed | ||
2013-11-01 10:30 | Brad King | Fixed in Version | => CMake 3.0 | ||
2013-11-01 10:30 | Brad King | Target Version | => CMake 3.0 | ||
2013-11-05 07:45 | Brad King | Fixed in Version | CMake 3.0 => CMake 2.8.12.1 | ||
2013-11-05 07:45 | Brad King | Target Version | CMake 3.0 => CMake 2.8.12.1 | ||
2014-06-02 08:37 | Robert Maynard | Note Added: 0036002 | |||
2014-06-02 08:37 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|