Unverified Commit 5b4b4182 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

use check_language() instead of enable_language() to get fortran compiler name

parent 8df7f514
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -20,9 +20,13 @@ if(PKG_KIM)
      message(FATAL_ERROR "Cannot build downloaded KIM-API library with Ninja build tool")
    endif()
    message(STATUS "KIM-API download requested - we will build our own")
    enable_language(C)
    enable_language(Fortran)
    include(CheckLanguage)
    include(ExternalProject)
    enable_language(C)
    check_language(Fortran)
    if(NOT CMAKE_Fortran_COMPILER)
      message(FATAL_ERROR "Compiling the KIM-API library requires a Fortran compiler")
    endif()
    ExternalProject_Add(kim_build
      URL https://s3.openkim.org/kim-api/kim-api-2.1.2.txz
      URL_MD5 6ac52e14ef52967fc7858220b208cba5