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 ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers