[cmake-developers] [CMake 0013289]: In some cases, add_library(<name> OBJECT <src> ...) failure with unexpected warnings.
Mantis Bug Tracker
mantis at public.kitware.com
Sat Jun 9 03:03:27 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13289
======================================================================
Reported By: monaka
Assigned To:
======================================================================
Project: CMake
Issue ID: 13289
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-06-09 03:03 EDT
Last Modified: 2012-06-09 03:03 EDT
======================================================================
Summary: In some cases, add_library(<name> OBJECT <src> ...)
failure with unexpected warnings.
Description:
In case TARGET_SUPPORT_SHARED_LIBS is false, Calling add_library(... OBJECT ...)
will get warnings below.
"ADD_LIBRARY for library foobar is used with the MODULE option, but the target
platform supports only STATIC libraries. Building it STATIC instead. This may
lead to problems."
And type is forced to cmTarget::STATIC_LIBRARY.
Actually adding "object library" will succeed even if its target isn't support
shared libs.
The current implementation is unsuitable, I think.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-06-09 03:03 monaka New Issue
======================================================================
More information about the cmake-developers
mailing list