Skip to content
Snippets Groups Projects
Unverified Commit ef59cc39 authored by Yann Collet's avatar Yann Collet Committed by GitHub
Browse files

Merge pull request #3665 from gjasny/fix-asm-for-xcode

Fix Intel Xcode builds with assembly
parents ccd49486 7e09f07b
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,9 @@ endif ()
# Our assembly expects to be compiled by a C compiler, and is only enabled for
# __GNUC__ compatible compilers. Otherwise all the ASM code is disabled by
# macros.
set_source_files_properties(${Sources} PROPERTIES LANGUAGE C)
if(NOT CMAKE_ASM_COMPILER STREQUAL CMAKE_C_COMPILER)
set_source_files_properties(${Sources} PROPERTIES LANGUAGE C)
endif()
macro (add_definition target var)
if (NOT ("${${var}}" STREQUAL ""))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment