diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b7692cfbb..fb59ec457a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -189,8 +189,8 @@ if (CXX_CLANG_CL) $<$:/EHsc> # thanks microsoft ) - # REQUIRED CPU features IN windows specifically and amd64 - if (ARCHITECTURE_x86_64 AND WIN32) + # REQUIRED CPU features IN Windows-amd64 + if (ARCHITECTURE_x86_64) add_compile_options( $<$:-msse4.1> $<$:-mcx16> diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 29f55307a8..81c2f81292 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -178,7 +178,7 @@ else() if (MINGW) add_compile_definitions(MINGW_HAS_SECURE_API) - # Only windows has this requirement, or does it? + # Only windows has this requirement, thanks windows if (WIN32) add_compile_options("-msse4.1") endif()