<div class="gmail_quote">On Tue, Jun 15, 2010 at 12:01 PM, Hendrik Sattler <span dir="ltr"><<a href="mailto:post@hendrik-sattler.de">post@hendrik-sattler.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Your library name is NOT "libetk-mgw45". Try "etk-mgw45" instead and read<br>
about library file names.<br>
</blockquote><div>Thanks for your help. Alas, on MSVC10 and Intel11.1 windows, the "link_directories" and "target_link_libraries" approach I used above (with the full filename) worked fine and hence never tried other methods</div>
<div><br></div><div>I had tried the "etk-mgw45" without the "lib" and it didn't seem to work. </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Also, do not use link_directories() but use find_library() and the value you<br>
get from it.</blockquote><div><br></div><div>I have tried a few permutations with find_library, but not having a lot of luck. Here is the current section of code I am testing with. </div><div><br></div><div> link_directories( "c:/working/etk_binaries")</div>
<div> find_library(LIB_NAME "etk-mgw45-d" "c:/working/etk_binaries")</div><div> message("Value of LIB_NAME ${LIB_NAME}")</div><div> if(${LIB_NAME} STREQUAL "LIB_NAME-NOTFOUND")</div>
<div> <span class="Apple-tab-span" style="white-space:pre">        </span>MESSAGE("FAILED TO FIND LIBRARY!!!!!!!!!!!!!!!!!!!")</div><div> endif(${LIB_NAME} STREQUAL "LIB_NAME-NOTFOUND")</div><div><br></div>
<div>I have c:\working\etk_binaries in my windows path, I have tried putting the libetk-mgw45-d.a inside of the directory with the CMakeLists.txt/test.cpp. And tried a few variations of find_library such as:</div><div>find_library(LIB_NAME NAME etk-mgw45-d PATHS "c:/working/etk_binaries" PATH_SUFFIXES "a")</div>
<div><br></div><div>But I always get the NOTFOUND.</div><div><br></div><div>Any ideas?</div><div><br></div></div>