We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1a04c2 commit c4f7d83Copy full SHA for c4f7d83
1 file changed
cmake/CompilerOptions.cmake
@@ -90,6 +90,13 @@ if( CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
90
if( CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.0 )
91
target_compile_options( ${LIB_TARGET} PRIVATE -Wno-missing-braces -Wmissing-field-initializers )
92
endif()
93
+ if(
94
+ MSVC AND
95
+ CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19 AND
96
+ CMAKE_CXX_COMPILER_VERSION VERSION_LESS 21
97
+ )
98
+ target_compile_options( ${LIB_TARGET} PRIVATE -Wno-cast-function-type )
99
+ endif()
100
101
102
if( APPLE )
0 commit comments