<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div><br></div><div>Hello,</div><div><br></div><div>I would like to write some FindFoo.cmake files to find packages installed on different systems including Mac.<br></div><div>I have noticed that homebrew install packages in a repertory whose name depends on the version of the package.</div><div>For example, I have installed a scientific library called scotch, and it is now installed here:</div><div><br></div><div><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"><span class="s1">/usr/local/Cellar/scotch/6.0.4_4</span></p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"><span class="s1"><br></span></p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"><span class="s1">What is the best way to handle such a path in FindScotch.cmake?</span></p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;"><span class="s1"><br></span></p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">I have think about these ones:</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">- looking for /usr/local/Cellar/scotch/${SCOTCH_VERSION} where SCOTCH_VERSION has to be provided by users;</p><p class="p1" style="margin: 0px;" data-mce-style="margin: 0px;">- force users to install a specific version of Scotch which is hardcoded in SCOTCH_VERSION variable.</p></div><div><br></div><div>I think the latter option is better since there is no reason that any version of scotch will be compatible with my own code.</div><div><br></div><div>Is there a better way?</div><div><br></div><div>Best regards,</div><div><br></div><div>Cédric</div></div></body></html>