We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parenta8aa908 commitcd5cb61Copy full SHA for cd5cb61
CMakeLists.txt
@@ -269,7 +269,7 @@ elseif(MINGW)
269
endforeach()
270
elseif(CMAKE_CXX_COMPILER_IDMATCHES"MSVC")
271
foreach(t IN LISTS TOOL_EXES ITEMS${PROJECT_NAME})
272
- target_compile_options(${t}PRIVATE /sdl /permissive- /JMC- /Zc:__cplusplus)
+ target_compile_options(${t}PRIVATE /sdl /permissive- /JMC- /Zc:__cplusplus /Zc:inline)
273
274
275
if(ENABLE_CODE_ANALYSIS)
@@ -296,6 +296,12 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
296
297
endif()
298
299
+ if(CMAKE_CXX_COMPILER_VERSIONVERSION_GREATER_EQUAL 19.28)
300
+ foreach(t IN LISTS TOOL_EXES ITEMS${PROJECT_NAME})
301
+ target_compile_options(${t}PRIVATE /Zc:lambda)
302
+ endforeach()
303
+ endif()
304
+
305
if(UVATLAS_USE_OPENMP)
306
307
target_compile_options(${t}PRIVATE /openmp /Zc:twoPhase-)