diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 2fbc17dcf4..3f3da81b68 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -255,7 +255,7 @@ if(PKG_MSCG OR PKG_USER-ATC OR PKG_USER-AWPMD OR PKG_USER-QUIP OR PKG_LATTE) find_package(LAPACK) find_package(BLAS) if(NOT LAPACK_FOUND OR NOT BLAS_FOUND) - include(CheckIfNinjaSupportsFortran) + include(CheckGeneratorSupport) if(NOT CMAKE_GENERATOR_SUPPORT_FORTRAN) status(FATAL_ERROR "Cannot build internal linear algebra library as CMake build tool lacks Fortran support") endif() @@ -588,7 +588,7 @@ if(BUILD_TOOLS) add_executable(binary2txt ${LAMMPS_TOOLS_DIR}/binary2txt.cpp) install(TARGETS binary2txt DESTINATION ${CMAKE_INSTALL_BINDIR}) - include(CheckIfNinjaSupportsFortran) + include(CheckGeneratorSupport) if(CMAKE_GENERATOR_SUPPORT_FORTRAN) enable_language(Fortran) add_executable(chain.x ${LAMMPS_TOOLS_DIR}/chain.f) diff --git a/cmake/Modules/CheckIfNinjaSupportsFortran.cmake b/cmake/Modules/CheckGeneratorSupport.cmake similarity index 100% rename from cmake/Modules/CheckIfNinjaSupportsFortran.cmake rename to cmake/Modules/CheckGeneratorSupport.cmake