<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<br><div>

<style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

--></style>
<div dir="ltr">
<br><br><div><div id="ecxSkyDrivePlaceholder"></div>&gt;From: eike@sf-mail.de<br>&gt;To: cmake@cmake.org<br>&gt;Date: Fri, 25 Jan 2013 19:00:56 +0100<br>&gt;Subject: Re: [CMake] find_packge behavior regarding enabled languages<br><br><pre>&gt;xantares 09 wrote:<br>&gt; &gt;From: xantares09@hotmail.com<br>&gt; &gt;To: cmake@cmake.org<br>&gt; &gt;Date: Thu, 24 Jan 2013 08:12:49 +0000<br>&gt; &gt;Subject: [CMake] find_packge behavior regarding enabled languages<br> <br>&gt; &gt;I noticed that when all languages are disabled through the project command:<br>&gt; &gt;project ( Foo NONE )<br>&gt; &gt;<br>&gt;&gt; &gt;... then a dependent Bar sub-package cannot be detected from it's<br>&gt;&gt; &gt;BarConfig.cmake configuration file: find_package ( Bar MODULE )<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;Do you think it's a bug ? A feature ?<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;I explicitely disabled all languages to avoid compiler checks which are<br>&gt;&gt; &gt;useless for my documentation package.<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;Altough it works with at least one language enabled (or let default C &amp;<br>&gt;&gt; &gt;C++), I wondered if there's by chance any mean to avoid compiler checks<br>&gt;&gt; &gt;while still being able to detect config files, or if there's a<br>&gt;&gt; &gt;undocumented behavior of the find_package command regarding languages.<br> <br>&gt;&gt; I investigated my problem further and I noticed that find_package only finds<br>&gt;&gt; the config file if located on a specific location depending on enabled<br>&gt;&gt; languages: - no languages enabled:              <br>&gt;&gt; /usr/lib/cmake/bar/BarConfig.cmake - at least one language enabled:  <br>&gt;&gt; /usr/lib64/cmake/bar/BarConfig.cmake<br>&gt;&gt; <br>&gt;&gt; So selected languages have an impact on the searched library path : it takes<br>&gt;&gt; the arch into account if one is enabled.<br>&gt;&gt; <br>&gt;&gt; My box is a Fedora 18 x86_64 with latest cmake 2.8.10.<br>&gt;&gt; Should I report it ?<br> <br>&gt;I guess the reason is that it needs CMAKE_SIZEOF_VOID_P to know the difference <br>&gt;between lib and lib64, but that is only known if it has at least one compiler <br>&gt;to check.<br> <br>&gt;But what do you need a library for if you don't have a compiler?<br> <br>&gt;Eike<br>&gt;-- <br><br><br>Hi,<br><br>Yep that's it: if I set CMAKE_SIZEOF_VOID_P it works.<br>But you can't guess it without compiling :(<br><br>It's a latex documentation package as cmake provides UseLatex and stuff, also very practical for writing rules for html, ...<br><br>Regards.<br><br></pre><br>--

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</div>                                               </div></div>                                               </div></body>
</html>