<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    What is the proper way to handle the case where find_program() needs
    match "program-name" or "program-name.exe" depending on wether the
    host system is running a unix like OS or Windows?<br>
    <br>
    A project I'm looking at uses CMAKE_EXECUTABLE_SUFFIX for the
    target, so I assume that can't be used.<br>
    <br>
    A simple solution is to list both variants, but it adds clutter if
    the path contains variables and I'd like to know how others solve
    this.<br>
    <br>
    /Thomas<br>
    <br>
    <div class="moz-signature">-- <br>
      <font face="Arial"><font size="1">
          <br>
          <font color="#a6a6a6"><b>Thomas Törnblom</b>, <font
              color="#fdb913"><i>Product Engineer</i></font>
            <br>
            IAR Systems AB<br>
            Box 23051, Strandbodgatan 1<br>
            SE-750 23 Uppsala, SWEDEN<br>
            Mobile: +46 76 180 17 80 Fax: +46 18 16 78 01<br>
            E-mail: <font color="#808080"><a
                href="mailto:thomas.tornblom@iar.com">thomas.tornblom@iar.com</a></font>
            Website: <font color="#808080"><a href="http://www.iar.com">www.iar.com</a></font><br>
            Twitter: <font color="#808080"><a
                href="http://www.twitter.com/iarsystems">www.twitter.com/iarsystems</a></font><br>
          </font></font></font>
    </div>
  </body>
</html>