- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am using Visual Studio 2022 (17.7.7) and Fortran Compiler to build a CMake (3.27.7) project and getting the following error
-- Feature FORTRAN enabled
-- The Fortran compiler identification is unknown
Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.11.0 Build 20231010_000000
Copyright (C) 1985-2023 Intel Corporation. All rights reserved.
-- Check for working Fortran compiler: C:/Program Files (x86)/Intel/oneAPI/compiler/2024.0/bin/ifort.exe
CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_Fortran_PREPROCESS_SOURCE
CMake Error at C:/msys64/mingw64/share/cmake/Modules/CMakeTestFortranCompiler.cmake:49 (try_compile):
Failed to generate test project build system.
Call Stack (most recent call first):
cmake/ecbuild_enable_fortran.cmake:46 (enable_language)
CMakeLists.txt:158 (ecbuild_enable_fortran)
Please help me understand how to fix this.
Thanks
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This may help: https://cmake.org/cmake/help/latest/prop_tgt/Fortran_PREPROCESS.html
You also should consult cmake.org for other settings that may be of use.
Jim Dempsey
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page