Enable .pdb file generation on Windows
Add compiler flag for generating program database file (PDB) for Visual Studio.
This commit is contained in:
parent
89e5be7d70
commit
bdf0fc4ffb
|
@ -44,7 +44,7 @@ set(CMAKE_REQUIRED_LIBRARIES c)
|
|||
|
||||
|
||||
if(WIN32)
|
||||
add_compile_options(/W3 /EHsc /std:c++14 /bigobj)
|
||||
add_compile_options(/W3 /EHsc /std:c++14 /bigobj /Zi)
|
||||
else()
|
||||
if(USE_GOLD_LINKER)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold -Wl,--disable-new-dtags")
|
||||
|
|
Loading…
Reference in New Issue