From c879ff980c7536cab3b457819591ea9b1a625f0a Mon Sep 17 00:00:00 2001 From: Daniel Donenfeld Date: Thu, 7 Feb 2019 11:32:39 -0800 Subject: [PATCH] Fix code to handle simulating MSVC case --- tests/CMakeLists.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 9a4a52e..e1968b2 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -221,16 +221,17 @@ function(add_gsl_asm_test name) add_library(${name}_asm ${name}.cpp) add_library(${name}_asm_options INTERFACE) - target_compile_options(${name}_asm_options INTERFACE - $<$: + if(MSVC) # MSVC or simulating MSVC + target_compile_options(${name}_asm_options INTERFACE /FA /Fa${ASM_LOCATION}\\${name}.asm - > - $<$>: + ) + else() + target_compile_options(${name}_asm_options INTERFACE -S -o ${ASM_LOCATION}\\${name}.s - > - ) + ) + endif(MSVC) target_link_libraries(${name}_asm GSL