<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><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">&gt;From: xantares09@hotmail.com<br>&gt;To: cmake@cmake.org<br>&gt;Date: Thu, 24 Jan 2013 08:12:49 +0000<br>&gt;Subject: [CMake] find_packge behavior regarding enabled languages<br>&gt;<br>

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

--></style>
<div dir="ltr">
&gt;Hi,<br>&gt;<br>&gt;I noticed that when all languages are disabled through the project command:<br>&gt;project ( Foo NONE )<br>&gt;<br>&gt;... then a dependent Bar sub-package cannot be detected from it's BarConfig.cmake configuration file:<br>&gt;find_package ( Bar MODULE )<br>&gt;<br>&gt;Do you think it's a bug ? A feature ?<br>&gt;<br>&gt;I explicitely disabled all languages to avoid compiler checks which are useless for my documentation package.<br>&gt;<br>&gt;Altough it works with at least one language enabled (or let default C &amp; C++),<br>&gt;I wondered if there's by chance any mean to avoid compiler checks while still being able to detect config files,<br>&gt;or if there's a undocumented behavior of the find_package command regarding languages.<br>&gt;<br>&gt;Regards,<br>&gt;M.<br><br>Hi,<br><br>I investigated my problem further and I noticed that find_package only finds the config file if located on a specific location depending on enabled languages:<br>- no languages enabled:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/lib/cmake/bar/BarConfig.cmake<br>- at least one language enabled:&nbsp;&nbsp; /usr/lib64/cmake/bar/BarConfig.cmake<br><br>So selected languages have an impact on the searched library path : it takes the arch into account if one is enabled.<br><br>My box is a Fedora 18 x86_64 with latest cmake 2.8.10.<br>Should I report it ?<br><br>M.<br><br></div></div>                                               </div></body>
</html>