<div>I am using CMake 2.8.1 on Windows 7.  I have MinGW installed with GCC 4.5</div><div><br></div>I have successfully compiled a library with a MinGW and cmake.  The full path to the library is: c:\working\etk_binaries\libetk-mgw45.a<div>

<br></div><div>However, when I want to link this file into an executable (no need to have the CMake dependencies, etc. in projects) it can&#39;t seem to find this file.</div><div>My cmakelists.txt is:</div><div><div><div>

  cmake_minimum_required(VERSION 2.6)</div><div>  set(PROJECT_NAME  &quot;test&quot; ) </div><div>  set(SRCS <span class="Apple-tab-span" style="white-space:pre">        </span>test.cpp )<span class="Apple-tab-span" style="white-space:pre">        </span></div>

<div>  project(${PROJECT_NAME})</div><div>  add_executable(${PROJECT_NAME} ${SRCS})</div><div><br></div><div>  link_directories( &quot;c:/working/etk_binaries&quot;)</div><div>  target_link_libraries(${PROJECT_NAME} libetk-mgw45)</div>

</div></div><div><br></div><div><br></div><div>The error I get is:</div><div><br></div><div><div>c:\MinGW\bin/ld.exe: cannot find -llibetk-mgw45</div><div>collect2: ld returned 1 exit status</div><div>mingw32-make[2]: *** [test.exe] Error 1</div>

<div>mingw32-make[1]: *** [CMakeFiles/test.dir/all] Error 2</div></div><div><br></div><div><br></div><div>Any ideas on what I have done wrong?</div><div><br></div><div>Thanks,</div><div>Jesse</div>