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

Commit052a81b

Browse files
authored
CMake update to use /ZH:SHA_256 for clang v16 or later (#115)
1 parent5ca9aab commit052a81b

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

‎CMakeLists.txt‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,13 @@ if(MSVC)
291291
endforeach()
292292
endif()
293293

294+
if((MSVC_VERSIONGREATER_EQUAL 1924)
295+
AND ((NOT (CMAKE_CXX_COMPILER_IDMATCHES"Clang"))OR (CMAKE_CXX_COMPILER_VERSIONVERSION_GREATER_EQUAL 16.0)))
296+
foreach(t IN LISTS TOOL_EXES ITEMS${PROJECT_NAME})
297+
target_compile_options(${t}PRIVATE /ZH:SHA_256)
298+
endforeach()
299+
endif()
300+
294301
if((MSVC_VERSIONGREATER_EQUAL 1928)
295302
AND (CMAKE_SIZEOF_VOID_PEQUAL 8)
296303
AND ((NOT (CMAKE_CXX_COMPILER_IDMATCHES"Clang"))OR (CMAKE_CXX_COMPILER_VERSIONVERSION_GREATER_EQUAL 13.0)))
@@ -355,12 +362,6 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
355362
endforeach()
356363
endif()
357364

358-
if(CMAKE_CXX_COMPILER_VERSIONVERSION_GREATER_EQUAL 19.24)
359-
foreach(t IN LISTS TOOL_EXES ITEMS${PROJECT_NAME})
360-
target_compile_options(${t}PRIVATE /ZH:SHA_256)
361-
endforeach()
362-
endif()
363-
364365
if(CMAKE_CXX_COMPILER_VERSIONVERSION_GREATER_EQUAL 19.26)
365366
foreach(t IN LISTS TOOL_EXES ITEMS${PROJECT_NAME})
366367
target_compile_options(${t}PRIVATE /Zc:preprocessor /wd5105)

‎build/UVAtlas-GitHub-SDK-prerelease.yml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ jobs:
4343
fetchTags:false
4444
-task:NuGetToolInstaller@1
4545
displayName:'Use NuGet'
46+
inputs:
47+
versionSpec:'6.5.x'
4648
-task:NuGetCommand@2
4749
# We have to use a nuget.config to provide the feed for the 'nuget install' option.
4850
displayName:'NuGet set package source to ADO feed'
4951
inputs:
5052
command:custom
51-
arguments:sources add -Name xboxgdk-DirectXMesh -Source $(URL_FEED) -ConfigFile NuGet.config
53+
arguments:sources add -Name xboxgdk-DirectXMesh -Source $(URL_FEED) -ConfigFile$(Build.SourcesDirectory)\NuGet.config
5254
-task:PowerShell@2
5355
displayName:'Set nuget.config to single source'
5456
inputs:
@@ -140,11 +142,13 @@ jobs:
140142
fetchTags:false
141143
-task:NuGetToolInstaller@1
142144
displayName:'Use NuGet'
145+
inputs:
146+
versionSpec:'6.5.x'
143147
-task:NuGetCommand@2
144148
displayName:NuGet set package source to ADO feed
145149
inputs:
146150
command:custom
147-
arguments:sources add -Name xboxgdk-DirectXMesh -Source $(URL_FEED) -ConfigFile NuGet.config
151+
arguments:sources add -Name xboxgdk-DirectXMesh -Source $(URL_FEED) -ConfigFile$(Build.SourcesDirectory)\NuGet.config
148152
-task:PowerShell@2
149153
displayName:'Set nuget.config to single source'
150154
inputs:

‎build/UVAtlas-GitHub-SDK-release.yml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ jobs:
4343
fetchTags:false
4444
-task:NuGetToolInstaller@1
4545
displayName:'Use NuGet'
46+
inputs:
47+
versionSpec:'6.5.x'
4648
-task:NuGetCommand@2
4749
# We have to use a nuget.config to provide the feed for the 'nuget install' option.
4850
displayName:'NuGet set package source to ADO feed'
4951
inputs:
5052
command:custom
51-
arguments:sources add -Name xboxgdk-DirectXMesh -Source $(URL_FEED) -ConfigFile NuGet.config
53+
arguments:sources add -Name xboxgdk-DirectXMesh -Source $(URL_FEED) -ConfigFile$(Build.SourcesDirectory)\NuGet.config
5254
-task:PowerShell@2
5355
displayName:'Set nuget.config to single source'
5456
inputs:
@@ -140,11 +142,13 @@ jobs:
140142
fetchTags:false
141143
-task:NuGetToolInstaller@1
142144
displayName:'Use NuGet'
145+
inputs:
146+
versionSpec:'6.5.x'
143147
-task:NuGetCommand@2
144148
displayName:NuGet set package source to ADO feed
145149
inputs:
146150
command:custom
147-
arguments:sources add -Name xboxgdk-DirectXMesh -Source $(URL_FEED) -ConfigFile NuGet.config
151+
arguments:sources add -Name xboxgdk-DirectXMesh -Source $(URL_FEED) -ConfigFile$(Build.SourcesDirectory)\NuGet.config
148152
-task:PowerShell@2
149153
displayName:'Set nuget.config to single source'
150154
inputs:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp