title: CMake's find_library() apparently doesn't locate libraries
body: <p>I want CMake to find three static libraries in the same folder. This is the portion of my CMakeLists.txt I'm struggling with:</p>
  
  <pre><code># Dependencies' directories
  set(OGRE3D_DIR "D:/Data/Libs/ogre3D-1.10")
  
  # Required libraries
  find_library(OGREMAIN_LIB
          NAMES OgreMain OgreMain_d
          HINTS "${OGRE3D_DIR}/lib/${CMAKE_BUILD_TYPE}")
  
  find_library(OGREOVERLAY_LIB
          NAMES OgreOverlay OgreOverlay_d
          HINTS "${OGRE3D_DIR}/lib/${CMAKE_BUILD_TYPE}")
  
  find_library(OIS_LIB
          NAMES OIS OIS_d
          HINTS "${OGRE3D_DIR}/lib/${CMAKE_BUILD_TYPE}")
  
  # Target
  add_executable(Test Main.cpp)
  
  # Library linking
  target_link_libraries(Test
          ${OGREMAIN_LIB}
          ${OGREOVERLAY_LIB}
          ${OIS_LIB})
  </code></pre>
  
  <p>For some reason, the three variables <code>OGREMAIN_LIB</code>, <code>OGREOVERLAY_LIB</code> and <code>OIS_LIB</code> are all set to NOTFOUND, but if I try to print them I find they're set to the expected path (even the correct one between the suffixed and non-suffixed name is picked). All libraries are obviously actually in the expected path.</p>
  
  <p><strong>What am I doing wrong here?</strong></p>