MantisBT - CMake
View Issue Details
0015657CMakeCMakepublic2015-07-21 07:162016-01-04 11:51
Erik Sjölund 
Brad King 
normalminoralways
closedfixed 
 
CMake 3.4CMake 3.4 
0015657: cmTarget::GetOutputInfo called for mytarget which has type UTILITY (CMake Internal Error)
I was experimenting with exporting. I don't know if the content
of the CMakeLists.txt makes sense but CMake told me to report a bug:
"CMake Internal Error (please report a bug)"

Here is the content of the CMakeLists.txt file:

cmake_minimum_required(VERSION 3.3)
add_custom_command(OUTPUT empty.txt COMMAND touch empty.txt)
add_custom_target(mytarget DEPENDS empty.txt)
export(TARGETS mytarget FILE export.cmake)



The shell terminal session is attached as a file (terminal-output.txt).
No tags attached.
txt terminal-output.txt (3,549) 2015-07-21 07:16
https://public.kitware.com/Bug/file/5489/terminal-output.txt
Issue History
2015-07-21 07:16Erik SjölundNew Issue
2015-07-21 07:16Erik SjölundFile Added: terminal-output.txt
2015-07-21 09:40Brad KingNote Added: 0039159
2015-07-22 11:04Brad KingNote Added: 0039163
2015-07-22 11:04Brad KingAssigned To => Brad King
2015-07-22 11:04Brad KingStatusnew => resolved
2015-07-22 11:04Brad KingResolutionopen => fixed
2015-07-22 11:04Brad KingFixed in Version => CMake 3.4
2015-07-22 11:04Brad KingTarget Version => CMake 3.4
2016-01-04 11:51Robert MaynardNote Added: 0040095
2016-01-04 11:51Robert MaynardStatusresolved => closed

Notes
(0039159)
Brad King   
2015-07-21 09:40   
Thanks. Exporting custom targets is not allowed but clearly the case should be diagnosed without producing an internal error.
(0039163)
Brad King   
2015-07-22 11:04   
Fixed and test case added:

 export: Reject custom target exports earlier
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7e9f908e [^]
(0040095)
Robert Maynard   
2016-01-04 11:51   
Closing resolved issues that have not been updated in more than 4 months.