]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: extract common in one place for further check
authorChangcheng Liu <changcheng.liu@aliyun.com>
Thu, 22 Oct 2020 04:51:39 +0000 (12:51 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Thu, 29 Oct 2020 00:57:54 +0000 (08:57 +0800)
Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/CMakeLists.txt

index 39e2fc271cf2e10b30966ad1277bc1d77e086817..8b515575896673587843e5dc987601a889f58585 100644 (file)
@@ -139,13 +139,13 @@ endif()
 
 include(SIMDExt)
 if(HAVE_INTEL)
-  set(CMAKE_ASM_COMPILER  ${PROJECT_SOURCE_DIR}/src/yasm-wrapper)
   if(APPLE)
     set(object_format "macho64")
   else()
     set(object_format "elf64")
   endif()
   set(CMAKE_ASM_FLAGS "-f ${object_format}")
+  set(CMAKE_ASM_COMPILER ${PROJECT_SOURCE_DIR}/src/yasm-wrapper)
   if(NOT WIN32)
     # The native tools might be located even when cross compiling, which
     # might not work in this case (especially when targeting Windows).