]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: point to asm_compiler to yasm only if HAVE_INTEL
authorKefu Chai <kchai@redhat.com>
Sun, 2 Apr 2017 17:05:57 +0000 (01:05 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 2 Apr 2017 17:44:18 +0000 (01:44 +0800)
as currently only isa uses it.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt

index d6388e805af2a3afaaaf261777308794567cafe1..49e2e25a893fb561029346459bca47203c4ea6ad 100644 (file)
@@ -82,7 +82,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
 endif(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
 
 include(SIMDExt)
-if(NOT HAVE_PPC64LE)
+if(HAVE_INTEL)
   set(CMAKE_ASM_COMPILER  ${PROJECT_SOURCE_DIR}/src/yasm-wrapper)
   set(CMAKE_ASM_FLAGS "-f elf64")
 endif()