Generating libtool file with CMake

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Generating libtool file with CMake

CMake mailing list
Hi !

I'm trying to port the LibVMI project from autotools to CMake:

One of the problems I have is to generate a libtool file, like autotools is already doing.

So far I have found this module on CMake wiki:

But it seems a bit old.
CMake Error at cmake/modules/Libtool.cmake:9 (GET_TARGET_PROPERTY):
  The LOCATION property may not be read from target "vmi_shared".  Use the
  target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  libvmi/CMakeLists.txt:127 (create_libtool_file)

I found an updated version of this script on the GNU Radio project:

But again, another error:
CMake Error:
  Error evaluating generator expression:


  Expression syntax not recognized.

-> Can the CMake community help me a bit to generate
this libtool file on a recent CMake release ?

Thanks !
Mathieu Tarral

Sent with ProtonMail Secure Email.


Powered by

Please keep messages on-topic and check the CMake FAQ at:

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support:
CMake Consulting:
CMake Training Courses:

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe: