Always enable string pooling for msvc

This commit is contained in:
halx99 2021-12-04 13:45:25 +08:00
parent fef04c4830
commit 0f4b92c1e4
1 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,10 @@ set(CMAKE_CXX_STANDARD ${CXX_STD})
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
if (MSVC)
add_compile_options(/GF)
endif()
set(CMAKE_DEBUG_POSTFIX "" CACHE STRING "Library postfix for debug builds. Normally left blank." FORCE)
# check visual studio version