package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
940 B
15 lines
940 B
2 years ago
|
diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake
|
||
|
index 44a8bf1211..d0f1716850 100644
|
||
|
--- a/cmake/Dependencies.cmake
|
||
|
+++ b/cmake/Dependencies.cmake
|
||
|
@@ -816,7 +816,8 @@ if(USE_FBGEMM)
|
||
|
set_property(TARGET fbgemm_avx2 PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||
|
set_property(TARGET fbgemm_avx512 PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||
|
set_property(TARGET fbgemm PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||
|
- if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 13.0.0)
|
||
|
+ if(("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.1.6)
|
||
|
+ OR("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0.0))
|
||
|
# See https://github.com/pytorch/pytorch/issues/74352
|
||
|
target_compile_options(asmjit PRIVATE -Wno-deprecated-copy -Wno-unused-but-set-variable)
|
||
|
endif()
|