From: DRC Date: Sat, 31 Mar 2018 20:34:23 +0000 (-0500) Subject: CMakeLists.txt: Move intrin.h header check X-Git-Tag: 2.0.0~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a74655af45bd8c3e7a5577d6ff486dbf0c8e77bf;p=libjpeg-turbo CMakeLists.txt: Move intrin.h header check It is more readable for this to be next to the __builtin_ctzl() check, since both are used by the accelerated progressive Huffman code. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index cc548f5..c6b007d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -351,6 +351,9 @@ if(SIZE_T EQUAL UNSIGNED_LONG) check_c_source_compiles("int main(int argc, char **argv) { unsigned long a = argc; return __builtin_ctzl(a); }" HAVE_BUILTIN_CTZL) endif() +if(MSVC) + check_include_files("intrin.h" HAVE_INTRIN_H) +endif() if(UNIX) # Check for headers @@ -415,7 +418,6 @@ if(UNIX) endif() if(MSVC) - check_include_files("intrin.h" HAVE_INTRIN_H) set(INLINE_OPTIONS "__inline;inline") else() set(INLINE_OPTIONS "__inline__;inline")