title: Disable PIC for link in CMake
body: <p>I have a C++ project in CMake (32-bit shared library) and gcc compiler. I set <code>POSITION_INDEPENDENT_CODE</code> property to <code>OFF</code> for my project, so it removes <code>-fPIC</code> only for source compiling, but not for link stage too. How can I disable it for link?</p>
  
  <p>I know there is a way with <code>-fno-PIC</code> in <code>LINK_FLAGS</code>. And also also I can set <code>CMAKE_SHARED_LIBRARY_CXX_FLAGS</code> to <code>""</code>. But these ways looks dirty.</p>