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

Mathieu Malaterre mathieu.malaterre at gmail.com
Thu Apr 26 10:54:48 EDT 2007


On 4/26/07, Bill Hoffman <bill.hoffman at kitware.com> wrote:
> 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.

What you are describing is the *implementation* in CMake, you made the
decision to make MODULE and SHARED different type even on platform
where there is no difference.

Anyway in using the full path to the module, I can bypass CMake check.

-Mathieu


More information about the CMake mailing list