Merge release-2019 into master
[alexxy/gromacs.git] / cmake / gmxDetectAvx512FmaUnits.cmake
index 5f278b3bff4461e09aa218dadec7d7ef58908f08..7836c4b2a99192442adb121e097692f3bc352675 100644 (file)
@@ -82,7 +82,7 @@ function(gmx_detect_avx_512_fma_units RESULT)
                         ERROR_QUIET)
                     if (RESULT_VAR EQUAL 0)
                         string(STRIP "${OUTPUT_VAR_TEMP}" OUTPUT_VAR)
-                        set(${RESULT} ${OUTPUT_VAR_TEMP} CACHE INTERNAL "Result of test for number of AVX-512 FMA units")
+                        set(${RESULT} ${OUTPUT_VAR} CACHE INTERNAL "Result of test for number of AVX-512 FMA units")
                     else()
                         message(STATUS "Could not identify number of AVX-512 units - detection program did run successfully")
                         set(${RESULT} -1 CACHE INTERNAL "Result of test for number of AVX-512 FMA units")