diff --git a/cmake/configure.cmake b/cmake/configure.cmake index 7f737cc189510d2f218f9274d7978359f9d9366c..f15db6e094c17afed01a875028d36d99e39a64a8 100644 --- a/cmake/configure.cmake +++ b/cmake/configure.cmake @@ -32,11 +32,9 @@ if(WITH_AVX AND AVX_FOUND) set(SIMD_FLAG ${AVX_FLAG}) add_definitions(-DPADDLE_WITH_AVX) elseif(SSE3_FOUND) - set(SIMD_FLAG ${SSE3_FLAG}) -endif() - -if (SSE3_FOUND) - # TODO: Runtime detection should be used here. + if(NOT WIN32) + set(SIMD_FLAG ${SSE3_FLAG}) + endif() add_definitions(-DPADDLE_WITH_SSE3) endif()