cmake: include where it is used

This commit is contained in:
Christoph Junghans
2020-05-05 08:53:49 -06:00
parent 9708b58939
commit 8a114fca97

View File

@ -553,8 +553,8 @@ if(BUILD_TOOLS)
install(TARGETS binary2txt DESTINATION ${CMAKE_INSTALL_BINDIR})
include(CheckGeneratorSupport)
include(CheckLanguage)
if(CMAKE_GENERATOR_SUPPORT_FORTRAN)
include(CheckLanguage)
check_language(Fortran)
if(CMAKE_Fortran_COMPILER)
enable_language(Fortran)