[cmake-developers] [CMake 0012960]: Cannot install a target named 'test'

Mantis Bug Tracker mantis at public.kitware.com
Mon Feb 13 07:30:39 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=12960 
====================================================================== 
Reported By:                Dimitri Merejkowsky
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12960
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-02-13 07:30 EST
Last Modified:              2012-02-13 07:30 EST
====================================================================== 
Summary:                    Cannot install a target named 'test'
Description: 
CMake error out when trying to installing a target named 'test' in
enable_testing() is called




Steps to Reproduce: 
Create a new project with the following CMakeLists.txt and an empty
test.cpp file

cmake_minimum_required(VERSION 2.8)
project(cmake_bug)
enable_testing()

add_executable(test test.cpp)
install(TARGETS test
  RUNTIME DESTINATION bin)

Run CMake: 

WARNING: Target "test" has EXCLUDE_FROM_ALL set and will not be built by default
but an install rule has been provided for it.  CMake does not define behavior
for this case.
CMake Internal Error (please report a bug) in CMakeLists.txt:
  cmTarget::GetOutputInfo called for test which has type GLOBAL_TARGET


====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-02-13 07:30 Dimitri MerejkowskyNew Issue                                   

======================================================================




More information about the cmake-developers mailing list