title: why CMAKE_LIBRARY_OUTPUT_DIRECTORY doesn't work?
body: <p>I want to build the static library on a <code>bin</code> subdir, but cmake seems not not doing what I want.
  Here is the Cmake file I wrote.</p>
  
  <pre><code>cmake_minimum_required(VERSION 3.3)
  project(FancyLogger)
  
  set(SOURCE_FILES FancyLogger.cpp)
  
  set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin)
  
  add_library(FancyLogger STATIC ${SOURCE_FILES})
  </code></pre>
  
  <p>I made a <code>build</code> subdir, and ran <code>cmake ..</code> and <code>make</code> in this sub directory, hoping that the output static library will be generated on the bin library.</p>
  
  <p>But the output remains in the <code>build</code> directory, Why?</p>
  
  <p>Here is my file tree</p>
  
  <p>=====
  |</p>
  
  <p>| FancyLogger.cpp</p>
  
  <p>| CMakeLists.txt</p>
  
  <p>| /build </p>
  
  <p>| /bin</p>