title: How to get pdb files while compiling release version of static library using cmake?
body: <p>I have a static library which i am compiling using cmake. Now, when i comiple in debug mode i get pdb file generated but when release mode is compiled the pdb file is not generated. Following is the piece of code in cmake:</p>
  
  <pre><code>    if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
          set_target_properties(${PROJECT_NAME} PROPERTIES IMPORTED_CONFIGURATIONS "Debug")
          set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_PDB_NAME ${PROJECT_NAME} COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/bin_debug" )
      elseif("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
          set_target_properties(${PROJECT_NAME} PROPERTIES IMPORTED_CONFIGURATIONS "Release")
          set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_PDB_NAME ${PROJECT_NAME} COMPILE_PDB_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/bin_release" )
  </code></pre>
  
  <p>I want to have pdb files for debug as well as release build. So,how can i have it? Suggestions are really required.</p>