diff --git a/src/cmake/VCLConfig.cmake b/src/cmake/VCLConfig.cmake index 6cd9b3f3..84505d45 100644 --- a/src/cmake/VCLConfig.cmake +++ b/src/cmake/VCLConfig.cmake @@ -183,12 +183,8 @@ function(vcl_configure tgt) set(VCL_NOT_VECTORIZING ON) endif() - if(EMSCRIPTEN) - target_compile_definitions(${tgt} PUBLIC EIGEN_DONT_VECTORIZE) - - if(NOT VCL_NOT_VECTORIZING) - target_compile_options(${tgt} PUBLIC "-msimd128") - endif() + if(EMSCRIPTEN AND NOT VCL_NOT_VECTORIZING) + target_compile_options(${tgt} PUBLIC "-msimd128") endif() endif(VCL_COMPILER_GNU OR VCL_COMPILER_CLANG OR VCL_COMPILER_ICC)