structuring installation folders for relocatable multi-platform installations

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

structuring installation folders for relocatable multi-platform installations

John Butterfield
What is the recommended way to structure installation folders for a relocatable installation for multiple platforms?

I'm looking for a structure that works with find_package module mode and config mode; something like this:

        <PLAT x ARCH x CONFIG>/

Goal is:

 * libs can be co-installed for different platforms, architectures and configs
 * includes can be shared
 * finding the includes should work in typical module mode searches
 * should just work with vanilla find_package(Foo REQUIRED), but for the appropriate platform and arch.

Considering I'd be installing mostly 3rd party libraries here, if this can be done by overriding the vars from GNUInstallDirs, it'd probably work for many libraries. The rest I guess would either have to be edited or I just give up and use separate installation dirs that include platform and arch.


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: