Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcd5cb61

Browse files
authored
CMake updated to use /Zc:inline and /Zc:lambda (#91)
1 parenta8aa908 commitcd5cb61

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎CMakeLists.txt‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ elseif(MINGW)
269269
endforeach()
270270
elseif(CMAKE_CXX_COMPILER_IDMATCHES"MSVC")
271271
foreach(t IN LISTS TOOL_EXES ITEMS${PROJECT_NAME})
272-
target_compile_options(${t}PRIVATE /sdl /permissive- /JMC- /Zc:__cplusplus)
272+
target_compile_options(${t}PRIVATE /sdl /permissive- /JMC- /Zc:__cplusplus /Zc:inline)
273273
endforeach()
274274

275275
if(ENABLE_CODE_ANALYSIS)
@@ -296,6 +296,12 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
296296
endforeach()
297297
endif()
298298

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+
299305
if(UVATLAS_USE_OPENMP)
300306
foreach(t IN LISTS TOOL_EXES ITEMS${PROJECT_NAME})
301307
target_compile_options(${t}PRIVATE /openmp /Zc:twoPhase-)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp