]> granicus.if.org Git - libjpeg-turbo/commitdiff
CMakeLists.txt: Move intrin.h header check
authorDRC <information@libjpeg-turbo.org>
Sat, 31 Mar 2018 20:34:23 +0000 (15:34 -0500)
committerDRC <information@libjpeg-turbo.org>
Sat, 31 Mar 2018 20:35:08 +0000 (15:35 -0500)
It is more readable for this to be next to the __builtin_ctzl() check,
since both are used by the accelerated progressive Huffman code.

CMakeLists.txt

index cc548f5ad1322451dba2bd8350f2c292fa12e11e..c6b007dd291d64fb80e02213e77ed1baabc32753 100644 (file)
@@ -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")