]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Reset CMAKE_REQUIRED_FLAGS
authorRichael Zhuang <richael.zhuang@arm.com>
Thu, 31 May 2018 08:19:55 +0000 (16:19 +0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 9 Aug 2018 09:32:23 +0000 (11:32 +0200)
Reset CMAKE_REQUIRED_FLAGS after each check to avoid the following
checks being influenced by the previous results.

Change-Id: I2e34f6127ef1c617f4eea363a2cb80bc49b3bcab
Signed-off-by: Richael Zhuang <richael.zhuang@arm.com>
CMakeLists.txt

index 863c9540cb8b59699fc9df07b1e9e35d964adf15..499fa066bfbc1e13b18d025f986636bf28811384 100644 (file)
@@ -303,6 +303,8 @@ else()
         }"
         HAVE_SSE2_INTRIN
     )
+    set(CMAKE_REQUIRED_FLAGS)
+
     if(WITH_NATIVE_INSTRUCTIONS)
         set(CMAKE_REQUIRED_FLAGS "${NATIVEFLAG}")
     else()
@@ -329,6 +331,8 @@ else()
         }"
         HAVE_SSE42CRC_INTRIN
     )
+    set(CMAKE_REQUIRED_FLAGS)
+
     if(WITH_NATIVE_INSTRUCTIONS)
         set(CMAKE_REQUIRED_FLAGS "${NATIVEFLAG}")
     else()
@@ -352,6 +356,7 @@ else()
     else()
         set(HAVE_PCLMULQDQ_INTRIN NO)
     endif()
+    set(CMAKE_REQUIRED_FLAGS)
 endif()
 
 #Check whether -mfpu=neon is available