set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE"${SCRIPTS}/toolchains/mingw.cmake"PARENT_SCOPE)# Switching to MinGW toolchain for Fortran
if(VCPKG_CRT_LINKAGESTREQUAL"static")
set(VCPKG_CRT_LINKAGEdynamicPARENT_SCOPE)
message(STATUS"VCPKG_CRT_LINKAGE linkage for ${PORT} using vcpkg's internal gfortran cannot be static due to linking against MinGW libraries. Forcing dynamic CRT linkage")
endif()
if(VCPKG_LIBRARY_LINKAGESTREQUAL"static")
set(VCPKG_LIBRARY_LINKAGEdynamicPARENT_SCOPE)
message(STATUS"VCPKG_LIBRARY_LINKAGE linkage for ${PORT} using vcpkg's internal gfortran cannot be static due to linking against MinGW libraries. Forcing dynamic library linkage")
endif()
else()
message(FATAL_ERROR"Unable to find a Fortran compiler using 'CMakeDetermineFortranCompiler'. Please install one (e.g. gfortran) and make it available on the PATH!")