On 8/3/2011 1:19 PM, Alexander Neundorf wrote:
Is there already a variable which contains the multiarch triplet, so I can do
something like lib/${CMAKE_MULTIARCH_TRIPLET}/... ?

Yes, "CMAKE_LIBRARY_ARCHITECTURE".  It contains no slashes and is empty
if there is no architecture choice.

Slightly different question: if a Config.cmake file is installed on a
multiarch debian system, will it also be found if installed in lib/ or lib64/
(i.e. without the multiarch triplet) ?

Yes.

How can lib/cmake/Foo/FooConfig.cmake know where the include dir is ?

If someone uses absolute install locations he/she better use the installed
package only from those locations.  The packager that creates a binary
installer better use relative locations.  This is no different than it
was before multiarch or GNUInstallDirs.

We didn't see a way how to do this, so we decided those directories should not
be in the cache, so we can be sure they are never absolute.

if(IS_ABSOLUTE "${CMAKE_INSTALL_LIBDIR}")
  message(FATAL_ERROR "We do not support this.")
endif()

-Brad
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to