mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-11 16:46:16 +00:00
Disable AVX2 for samples
This commit is contained in:
@@ -109,12 +109,16 @@ macro(momo_target_remove_compile_option target option)
|
||||
get_target_property(target_flags ${target} COMPILE_OPTIONS)
|
||||
if(target_flags)
|
||||
list(REMOVE_ITEM target_flags ${option})
|
||||
list(REMOVE_ITEM target_flags "$<$<COMPILE_LANGUAGE:C>:${option}>")
|
||||
list(REMOVE_ITEM target_flags "$<$<COMPILE_LANGUAGE:CXX>:${option}>")
|
||||
set_target_properties(${target} PROPERTIES COMPILE_OPTIONS "${target_flags}")
|
||||
endif()
|
||||
|
||||
get_target_property(target_interface_flags ${target} INTERFACE_COMPILE_OPTIONS)
|
||||
if(target_interface_flags)
|
||||
list(REMOVE_ITEM target_interface_flags ${option})
|
||||
list(REMOVE_ITEM target_interface_flags "$<$<COMPILE_LANGUAGE:C>:${option}>")
|
||||
list(REMOVE_ITEM target_interface_flags "$<$<COMPILE_LANGUAGE:CXX>:${option}>")
|
||||
set_target_properties(${target} PROPERTIES INTERFACE_COMPILE_OPTIONS "${target_interface_flags}")
|
||||
endif()
|
||||
endmacro()
|
||||
@@ -122,13 +126,21 @@ endmacro()
|
||||
##########################################
|
||||
|
||||
macro(momo_target_remove_compile_options target)
|
||||
foreach(option ${ARGV})
|
||||
foreach(option ${ARGN})
|
||||
momo_target_remove_compile_option(${target} ${option})
|
||||
endforeach()
|
||||
endmacro()
|
||||
|
||||
##########################################
|
||||
|
||||
function(momo_targets_remove_compile_options targets)
|
||||
foreach(target ${targets})
|
||||
momo_target_remove_compile_options(${target} ${ARGN})
|
||||
endforeach()
|
||||
endfunction()
|
||||
|
||||
##########################################
|
||||
|
||||
function(momo_add_compile_options language)
|
||||
foreach(option ${ARGN})
|
||||
add_compile_options(
|
||||
|
||||
Reference in New Issue
Block a user