<div dir="ltr">I haven't tested on gentoo yet. I'll do that.<div><br></div><div>However, I think we should be putting the find and config modules in ${PREFIX}/lib${arch}/share/cmake, since they are not architecture agnostic (waffle compiled for x86 does not fullfil x64, while python fulfills python no matter what version). Cmake supports this setup [0], and looking at that list closely I don't think its recomended to install directly into usr/share/cmake.</div><div><br></div><div>[0] <a href="http://www.cmake.org/cmake/help/v3.0/command/find_package.html#command:find_package">http://www.cmake.org/cmake/help/v3.0/command/find_package.html#command:find_package</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 26, 2014 at 12:11 PM, Jordan Justen <span dir="ltr"><<a href="mailto:jordan.l.justen@intel.com" target="_blank">jordan.l.justen@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">By default cmake modules will be under a versioned path such as<br>
$PREFIX/share/cmake-3.0/Modules. Although, in the case of gentoo (at<br>
least), the $PREFIX/share/cmake/Modules path is used.<br>
<br>
This change should be compatible with both styles since it uses<br>
${CMAKE_ROOT}.<br>
<br>
Signed-off-by: Jordan Justen <<a href="mailto:jordan.l.justen@intel.com">jordan.l.justen@intel.com</a>><br>
Cc: Dylan Baker <<a href="mailto:baker.dylan.c@gmail.com">baker.dylan.c@gmail.com</a>><br>
---<br>
Dylan, does this work on gentoo?<br>
<br>
I guess we can do the same thing with WaffleConfig*, right?<br>
<br>
 CMakeLists.txt | 4 +++-<br>
 1 file changed, 3 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/CMakeLists.txt b/CMakeLists.txt<br>
index bde8096..aa0ee2f 100644<br>
--- a/CMakeLists.txt<br>
+++ b/CMakeLists.txt<br>
@@ -139,9 +139,11 @@ install(<br>
     COMPONENT pkgconfig<br>
     )<br>
<br>
+get_filename_component(CMAKE_ROOT_LAST_DIR "${CMAKE_ROOT}" NAME)<br>
+<br>
 install(<br>
     FILES cmake/Modules/FindWaffle.cmake<br>
-    DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/cmake/Modules"<br>
+    DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/${CMAKE_ROOT_LAST_DIR}/Modules"<br>
     COMPONENT cmakefind<br>
     )<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.1.3<br>
<br>
</font></span></blockquote></div><br></div>