Added SFML_GENERATE_PDB CMake option; check CMake version dynamically
This commit is contained in:
parent
2bd897c513
commit
77609e166a
2 changed files with 18 additions and 6 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue