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)
|
set_target_properties(test_${PROJECT_NAME} PROPERTIES CXX_STANDARD 17)
|
||||||
endif ()
|
endif ()
|
||||||
if (WIN32)
|
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)
|
target_compile_definitions(test_${PROJECT_NAME} PRIVATE _SCL_SECURE_NO_WARNINGS)
|
||||||
elseif (APPLE)
|
elseif (APPLE)
|
||||||
target_compile_options(test_${PROJECT_NAME} PRIVATE -fexceptions -g -Wall)
|
target_compile_options(test_${PROJECT_NAME} PRIVATE -fexceptions -g -Wall)
|
||||||
@ -28,4 +28,4 @@ set_tests_properties("test_${PROJECT_NAME}"
|
|||||||
FAIL_REGULAR_EXPRESSION "Failed \\d+ test cases")
|
FAIL_REGULAR_EXPRESSION "Failed \\d+ test cases")
|
||||||
set_tests_properties("test_${PROJECT_NAME}"
|
set_tests_properties("test_${PROJECT_NAME}"
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
TIMEOUT 120)
|
TIMEOUT 120)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user