mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Fix code to handle simulating MSVC case
This commit is contained in:
parent
4bb6a2e73e
commit
c879ff980c
@ -221,16 +221,17 @@ function(add_gsl_asm_test name)
|
||||
add_library(${name}_asm ${name}.cpp)
|
||||
|
||||
add_library(${name}_asm_options INTERFACE)
|
||||
if(MSVC) # MSVC or simulating MSVC
|
||||
target_compile_options(${name}_asm_options INTERFACE
|
||||
$<$<CXX_COMPILER_ID:MSVC>:
|
||||
/FA
|
||||
/Fa${ASM_LOCATION}\\${name}.asm
|
||||
>
|
||||
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:
|
||||
)
|
||||
else()
|
||||
target_compile_options(${name}_asm_options INTERFACE
|
||||
-S
|
||||
-o ${ASM_LOCATION}\\${name}.s
|
||||
>
|
||||
)
|
||||
endif(MSVC)
|
||||
|
||||
target_link_libraries(${name}_asm
|
||||
GSL
|
||||
|
Loading…
Reference in New Issue
Block a user