From ab20dc8960436b6d286c64c0ec495d809ef38a9d Mon Sep 17 00:00:00 2001 From: Changcheng Liu Date: Thu, 22 Oct 2020 12:51:39 +0800 Subject: [PATCH] cmake: extract common in one place for further check Signed-off-by: Changcheng Liu --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 39e2fc271cf..8b515575896 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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). -- 2.47.3