[CMake] ExternalProject built libraries and dependencies

Michael Wild themiwi at gmail.com
Sat Dec 19 13:08:36 EST 2009


Hi all

I use ExternalProject to optionally build some dependencies as static libraries. However, since they are statically linked, I don't install them. Unfortunately, CMake includes these libraries in the export set through the IMPORTED_LINK_INTERFACE_LIBRARIES property. Worse, it references the location in the build tree. How can I prevent this from happening?

What is the "officially" sanctioned way of dealing with libraries built using the ExternalProject module?

Michael


More information about the CMake mailing list