Added SFML_GENERATE_PDB CMake option; check CMake version dynamically

This commit is contained in:
Jan Haller 2016-01-01 14:18:13 +01:00 committed by Lukas Dürrenberger
parent 2bd897c513
commit 77609e166a
2 changed files with 18 additions and 6 deletions

View file

@ -60,7 +60,7 @@ macro(sfml_add_library target)
endif()
# For Visual Studio on Windows, export debug symbols (PDB files) to lib directory
if(SFML_OS_WINDOWS AND SFML_COMPILER_MSVC)
if(SFML_GENERATE_PDB)
# PDB files are only generated in Debug and RelWithDebInfo configurations, find out which one
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
set(SFML_PDB_POSTFIX "-d")