зеркало из https://github.com/microsoft/FX11.git
CMake update to use /ZH:SHA_256 for clang v16 or later (#17)
This commit is contained in:
Родитель
e2410a5290
Коммит
9fef2aa4cf
|
@ -117,6 +117,11 @@ if(MSVC)
|
|||
target_compile_options(${PROJECT_NAME} PRIVATE "/Qspectre")
|
||||
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)))
|
||||
target_compile_options(${PROJECT_NAME} PRIVATE /ZH:SHA_256)
|
||||
endif()
|
||||
|
||||
if((MSVC_VERSION GREATER_EQUAL 1928)
|
||||
AND (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
AND ((NOT (CMAKE_CXX_COMPILER_ID MATCHES "Clang")) OR (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0)))
|
||||
|
@ -154,10 +159,6 @@ elseif( CMAKE_CXX_COMPILER_ID MATCHES "MSVC" )
|
|||
target_compile_options(${PROJECT_NAME} PRIVATE /Gy /Gw)
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.24)
|
||||
target_compile_options(${PROJECT_NAME} PRIVATE /ZH:SHA_256)
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.26)
|
||||
target_compile_options(${PROJECT_NAME} PRIVATE /Zc:preprocessor /wd5104 /wd5105)
|
||||
endif()
|
||||
|
|
Загрузка…
Ссылка в новой задаче