[CMake] Linux: target platform does not support dynamic linking?

Nico Schlömer nico.schloemer at gmail.com
Sun Sep 2 19:32:00 EDT 2012


Hi all,

I'm getting this error message

CMake Warning (dev) at /usr/share/cmake/Foobar/FoobarTargets.cmake:295
(ADD_LIBRARY):
  ADD_LIBRARY called with SHARED option but the target platform does not
  support dynamic linking.  Building a STATIC library instead.  This may lead
  to problems.

The line this error message refers to reads

ADD_LIBRARY(foobar SHARED IMPORTED)

My CMAKE_SYSTEM_NAME is "LInux", running CMake 2.8.9.

Cheers,
Nico


More information about the CMake mailing list