Merge pull request #69 from sid-dahiya/sid-dahiya/FixMsvcHiddenFriendError
Fix hidden friend issue for MSVC
This commit is contained in:
commit
d1f0f7f0ba
@ -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)
|
||||
@ -28,4 +28,4 @@ set_tests_properties("test_${PROJECT_NAME}"
|
||||
FAIL_REGULAR_EXPRESSION "Failed \\d+ test cases")
|
||||
set_tests_properties("test_${PROJECT_NAME}"
|
||||
PROPERTIES
|
||||
TIMEOUT 120)
|
||||
TIMEOUT 120)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user