mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-09 11:40:14 +02:00
CMake update to use /ZH:SHA_256 for clang v16 or later (#356)
This commit is contained in:
parent
d0ee1e8a89
commit
7a9a9e9e8f
@ -380,6 +380,13 @@ if(MSVC)
|
|||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if((MSVC_VERSION GREATER_EQUAL 1924)
|
||||||
|
AND ((NOT (CMAKE_CXX_COMPILER_ID MATCHES "Clang")) OR (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 16.0)))
|
||||||
|
foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME})
|
||||||
|
target_compile_options(${t} PRIVATE /ZH:SHA_256)
|
||||||
|
endforeach()
|
||||||
|
endif()
|
||||||
|
|
||||||
if((MSVC_VERSION GREATER_EQUAL 1928)
|
if((MSVC_VERSION GREATER_EQUAL 1928)
|
||||||
AND (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
AND (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
AND NOT ENABLE_OPENEXR_SUPPORT
|
AND NOT ENABLE_OPENEXR_SUPPORT
|
||||||
@ -445,12 +452,6 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
|||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.24)
|
|
||||||
foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME})
|
|
||||||
target_compile_options(${t} PRIVATE /ZH:SHA_256)
|
|
||||||
endforeach()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.26)
|
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.26)
|
||||||
foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME})
|
foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME})
|
||||||
target_compile_options(${t} PRIVATE /Zc:preprocessor /wd5105)
|
target_compile_options(${t} PRIVATE /Zc:preprocessor /wd5105)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user