<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 16, 2019 at 5:05 PM hex <<a href="mailto:hex7c3@gmail.com">hex7c3@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF">
    <p>hello,</p>
    <p>I am setting up a TCL project so I disabled all language
      variables:</p>
    <p><b>cmake_minimum_required(VERSION 2.4)</b><b><br>
      </b><b><br>
      </b><b>project(P LANGUAGES NONE)</b><b><br>
      </b><b>find_package(TCL)</b></p>
    <p><br>
    </p>
    <p>however, this fails with</p>
    <p><b>-- Could NOT find TCL (missing: TCL_LIBRARY) </b><b><br>
      </b><b>-- Could NOT find TCLTK (missing: TCL_LIBRARY TK_LIBRARY) </b><b><br>
      </b><b>-- Could NOT find TK (missing: TK_LIBRARY) </b><br>
    </p>
    <p><br>
    </p>
    <p>If I instead add languages to the project the TCL package works.
      This makes me wonder what dependencies TCL has with standard
      languages. Is the package incomplete? Why do I need to use a
      language that I do not intend to use?</p>
    <p>for example:<br>
    </p>
    <p><b>cmake_minimum_required(VERSION 2.4)</b><b><br>
      </b><b><br>
      </b><b>project(P LANGUAGES C)</b><b><br>
      </b><b>find_package(TCL)</b><b><br>
      </b></p>
    <p><b>-- Found Tclsh: /usr/bin/tclsh (found version "8.6") </b><b><br>
      </b><b>-- Found TCL: /usr/lib/x86_64-linux-gnu/libtcl.so  </b><b><br>
      </b><b>-- Found TCLTK: /usr/lib/x86_64-linux-gnu/libtcl.so  </b><b><br>
      </b><b>-- Found TK: /usr/lib/x86_64-linux-gnu/libtk.so  </b><br>
    </p>
    <p><br>
    </p>
    <p>thank you<br>
    </p>
  </div>

-- <br>
<br></blockquote><div> </div><div>Probably because the following isn't properly set if you don't enable a language:</div><div>CMAKE_FIND_LIBRARY_SUFFIXES<br></div><div>CMAKE_FIND_LIBRARY_PREFIXES<br></div><div><br></div><div>You could probably just use "find_package(Tclsh)" to just find the shell.</div><div><a href="https://cmake.org/cmake/help/v3.14/module/FindTclsh.html">https://cmake.org/cmake/help/v3.14/module/FindTclsh.html</a> </div></div></div></div></div></div></div>