Brad King wrote:

>> So the answer is, 'probably nothing'.
> 
> In that case I do not think we can justify a special CMake
> target type for it.  All the special cases for STATIC_LIBRARY
> targets will have to be updated to also account for the new
> type with no difference in logic.

Another alternative would be for 

 add_library(myplugin STATIC_MODULE foo.cpp)

be exactly equivalent to 

 add_library(myplugin STATIC foo.cpp)
 set_property(TARGET myplugin PROPERTY STATICPLUGIN 1)

and document the STATICPLUGIN target property. Then I can use that in the 
Qt5::Core INTERFACE_COMPILE_DEFINITIONS, and no handling of static libraries 
in CMake would need to be extended for the new type. The cmAddLibraryCommand 
would set the property.

Thanks,

Steve.



--

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

Reply via email to