[cmake-developers] [CMake 0011945]: CMake Error: INSTALL(EXPORT ...) includes target which requires target that is not in the export set
Mantis Bug Tracker
mantis at public.kitware.com
Wed Mar 9 08:59:07 EST 2011
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=11945
======================================================================
Reported By: david.ingamells
Assigned To:
======================================================================
Project: CMake
Issue ID: 11945
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2011-03-09 08:59 EST
Last Modified: 2011-03-09 08:59 EST
======================================================================
Summary: CMake Error: INSTALL(EXPORT ...) includes target
which requires target that is not in the export set
Description:
The error occurs even if TARGET_LINK_LIBRARIES specifies a library target that
is declared to be STATIC. This is just plain dumb, because the exported object
does not depend on the library at run-time. This is clearly a BUG in cmake 2.8.
Agreed it should be an error if target is a MODULE and not STATIC.
e.g. in the following the dependency on GenRoute is resolved at build time:
GenNav will not depend on GenRoute at run-time.
ADD_LIBRARY(GenRoute STATIC ${GenRoute_SRCS})
ADD_LIBRARY(GenNav MODULE ${GenNav_SRCS})
TARGET_LINK_LIBRARIES(GenNav GenRoute)
INSTALL(TARGETS GenNav
EXPORT mapapi_core
DESTINATION plugins)
$cmake
...
CMake Error: INSTALL(EXPORT "mapapi_core" ...) includes target "GenNav" which
requires target "GenRoute" that is not in the export set.
Steps to Reproduce:
see above.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-03-09 08:59 david.ingamellsNew Issue
======================================================================
More information about the cmake-developers
mailing list