View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015657CMakeCMakepublic2015-07-21 07:162016-01-04 11:51
ReporterErik Sjölund 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionCMake 3.4Fixed in VersionCMake 3.4 
Summary0015657: cmTarget::GetOutputInfo called for mytarget which has type UTILITY (CMake Internal Error)
DescriptionI 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)



Steps To ReproduceThe shell terminal session is attached as a file (terminal-output.txt).
TagsNo tags attached.
Attached Filestxt file icon terminal-output.txt [^] (3,549 bytes) 2015-07-21 07:16 [Show Content]

 Relationships

  Notes
(0039159)
Brad King (manager)
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 (manager)
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 (manager)
2016-01-04 11:51

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2015-07-21 07:16 Erik Sjölund New Issue
2015-07-21 07:16 Erik Sjölund File Added: terminal-output.txt
2015-07-21 09:40 Brad King Note Added: 0039159
2015-07-22 11:04 Brad King Note Added: 0039163
2015-07-22 11:04 Brad King Assigned To => Brad King
2015-07-22 11:04 Brad King Status new => resolved
2015-07-22 11:04 Brad King Resolution open => fixed
2015-07-22 11:04 Brad King Fixed in Version => CMake 3.4
2015-07-22 11:04 Brad King Target Version => CMake 3.4
2016-01-04 11:51 Robert Maynard Note Added: 0040095
2016-01-04 11:51 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team