From 99f1a4564f0a2ce4dc221e71a6ec5fead00b0bd3 Mon Sep 17 00:00:00 2001 From: Bastian Bloessl Date: Tue, 17 Dec 2019 18:09:01 +0100 Subject: [PATCH] cmake: fix sse2 detection --- lib/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 08f217d..24d3f38 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -19,8 +19,7 @@ # Setup library ######################################################################## include(GrPlatform) #define LIB_SUFFIX -include (CheckCCompilerFlag) -CHECK_C_COMPILER_FLAG ("-msse2" SSE2_SUPPORTED) +check_include_file("xmmintrin.h" SSE2_SUPPORTED) if(SSE2_SUPPORTED) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse2")