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

Commit8021f46

Browse files
authored
CMake code review (#168)
1 parent49fbfc2 commit8021f46

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

‎CMakeLists.txt‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ if(WINDOWS_STORE OR (DEFINED XBOX_CONSOLE_TARGET))
5353
endif()
5454

5555
include(GNUInstallDirs)
56+
include(build/CompilerAndLinker.cmake)
5657

5758
#--- Library
5859
set(LIBRARY_HEADERS
@@ -264,8 +265,6 @@ if(MSVC)
264265
endforeach()
265266
endif()
266267

267-
include(build/CompilerAndLinker.cmake)
268-
269268
foreach(t IN LISTS TOOL_EXES ITEMS${PROJECT_NAME})
270269
target_compile_definitions(${t}PRIVATE${COMPILER_DEFINES})
271270
target_compile_options(${t}PRIVATE${COMPILER_SWITCHES})

‎build/CompilerAndLinker.cmake‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ elseif(CMAKE_VS_PLATFORM_NAME_DEFAULT MATCHES "^[Aa][Rr][Mm]64EC$")
3232
set(DIRECTX_ARCH arm64ec)
3333
endif()
3434

35+
#--- Determines host architecture
36+
if(CMAKE_HOST_SYSTEM_PROCESSORMATCHES"[Aa][Rr][Mm]64|aarch64|arm64")
37+
set(DIRECTX_HOST_ARCH arm64)
38+
else()
39+
set(DIRECTX_HOST_ARCH x64)
40+
endif()
41+
3542
#--- Build with Unicode Win32 APIs per "UTF-8 Everywhere"
3643
if(WIN32)
3744
list(APPEND COMPILER_DEFINES _UNICODE UNICODE)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp