fix nasm support broken in 34e408cc
The last commit removed generator expressions from ADD_COMPILE_OPTIONS() which made C/C++ flags apply to nasm as well. Fix this by removing <FLAGS> from CMAKE_ASM_NASM_COMPILE_OBJECT and replacing it with the flags we want.
This commit is contained in:
parent
34e408ccb7
commit
f21178f6f7
|
@ -368,9 +368,7 @@ ENDIF()
|
|||
# Assembler flags
|
||||
|
||||
IF(ASM_ENABLED)
|
||||
FOREACH(ASM_FLAG -I${CMAKE_SOURCE_DIR}/src/filters/hq/asm/ -O1 -w-orphan-labels)
|
||||
ADD_COMPILE_OPTIONS($<$<COMPILE_LANGUAGE:ASM_NASM>:${ASM_FLAG}>)
|
||||
ENDFOREACH()
|
||||
STRING(REGEX REPLACE "<FLAGS>" "-I${CMAKE_SOURCE_DIR}/src/filters/hq/asm/ -O1 -w-orphan-labels" CMAKE_ASM_NASM_COMPILE_OBJECT ${CMAKE_ASM_NASM_COMPILE_OBJECT})
|
||||
ENDIF(ASM_ENABLED)
|
||||
|
||||
IF(APPLE)
|
||||
|
|
Loading…
Reference in New Issue