Merge branch release-2021
[alexxy/gromacs.git] / CMakeLists.txt
index 684ece050b17a362f467832972717cf5f4e51dfb..de9a8d67a185a5820943bca51be6856e47178093 100644 (file)
@@ -508,7 +508,7 @@ if (GMX_HWLOC)
         message(FATAL_ERROR "HWLOC package support required, but not found.")
     endif()
 
-    if (HWLOC_VERSION VERSION_LESS "2")
+    if (HWLOC_FOUND AND HWLOC_VERSION VERSION_LESS "2")
         message(STATUS "Support for hwloc versions 1.x is deprecated")
     endif()