[CMake] [Feature-request] CMake Error: Attempt to add link target foo of type: MODULE_LIBRARY

Bill Hoffman bill.hoffman at kitware.com
Thu Apr 26 08:54:49 EDT 2007


Mathieu Malaterre wrote:
> Hello,
>
>  Is this possible to change the error into a warning on system where
> there is no difference between module and shared library ? If
> CMAKE_MODULE_EXISTS is not set, I think this is resonnable to allow
> people to link to module, right ?
I don't agree, it will make your cmakelist file unportable.   When built 
on a system
where they are different it won't work.  If it is not a module, then 
don't build it as
a module.

-Bill



More information about the CMake mailing list