diff --git a/CMakeModules/FindLAPACKE.cmake b/CMakeModules/FindLAPACKE.cmake index b75797269f..419186918c 100644 --- a/CMakeModules/FindLAPACKE.cmake +++ b/CMakeModules/FindLAPACKE.cmake @@ -22,7 +22,7 @@ IF(NOT LAPACKE_ROOT_DIR) SET(LAPACKE_ROOT_DIR $ENV{LAPACKEDIR}) ENDIF() - IF (ENV{LAPACKE_ROOT_DIR_DIR}) + IF (ENV{LAPACKE_ROOT_DIR}) SET(LAPACKE_ROOT_DIR $ENV{LAPACKE_ROOT_DIR}) ENDIF()