Fix hidden friend issue for MSVC
This change is adding the `/Zc:hiddenFriend` option to address strict validation in MSVC 19.32.31328.0
This commit is contained in:
parent
db4963048d
commit
dfe3d39c10
@ -8,7 +8,7 @@ else ()
|
||||
set_target_properties(test_${PROJECT_NAME} PROPERTIES CXX_STANDARD 17)
|
||||
endif ()
|
||||
if (WIN32)
|
||||
target_compile_options(test_${PROJECT_NAME} PRIVATE /EHc)
|
||||
target_compile_options(test_${PROJECT_NAME} PRIVATE /EHc /Zc:hiddenFriend)
|
||||
target_compile_definitions(test_${PROJECT_NAME} PRIVATE _SCL_SECURE_NO_WARNINGS)
|
||||
elseif (APPLE)
|
||||
target_compile_options(test_${PROJECT_NAME} PRIVATE -fexceptions -g -Wall)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user