<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Visual Studio and CMake compiler identification fails in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Studio-and-CMake-compiler-identification-fails/m-p/1400053#M162029</link>
    <description>&lt;P&gt;Any ideas on the release time frame for the next oneAPI?&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jul 2022 16:41:13 GMT</pubDate>
    <dc:creator>JohnNichols</dc:creator>
    <dc:date>2022-07-13T16:41:13Z</dc:date>
    <item>
      <title>Visual Studio and CMake compiler identification fails</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Studio-and-CMake-compiler-identification-fails/m-p/1399629#M161999</link>
      <description>&lt;P data-prewrap="true" data-pm-slice="1 1 []"&gt;Hello,&lt;/P&gt;
&lt;P data-prewrap="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-prewrap="true"&gt;I am using Visual Studio 2022, version 17.2.5 to build a CMake project that creates a Fortran library as a target. The first two lines of my CMakeLists.txt are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;cmake_minimum_required(VERSION 3.0)
enable_language(Fortran)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When using Visual Studio to build the project, it fails at the second line with the following message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;    1&amp;gt; [CMake] -- Check for working Fortran compiler: C:/Program Files (x86)/Intel/oneAPI/compiler/2022.1.0/windows/bin/intel64/ifort.exe
    1&amp;gt; [CMake] CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
    1&amp;gt; [CMake] Missing variable is:
    1&amp;gt; [CMake] CMAKE_Fortran_PREPROCESS_SOURCE
    1&amp;gt; [CMake] CMake Error at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.22/Modules/CMakeTestFortranCompiler.cmake:49 (try_compile):
    1&amp;gt; [CMake]   Failed to generate test project build system.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have CMake 3.22, and I am using Ninja 1.10.2 as a generator. I have installed the Intel Fortran Compiler and I have ticked the option to add support for VS2022.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know what is the cause of this problem and can help me ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 11:18:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Studio-and-CMake-compiler-identification-fails/m-p/1399629#M161999</guid>
      <dc:creator>abrunner</dc:creator>
      <dc:date>2022-07-12T11:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio and CMake compiler identification fails</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Studio-and-CMake-compiler-identification-fails/m-p/1399764#M162016</link>
      <description>&lt;P&gt;The first thing I noticed is that you are using&amp;nbsp;&lt;SPAN&gt;Visual Studio 2022, version 17.2.5. The interface to Intel Fortran broke when MS released v 17.2.&amp;nbsp; MS changed the COM API with that release. See &lt;A href="https://community.intel.com/t5/Intel-Fortran-Compiler/Do-not-upgrade-VS-2022-to-version-v17-2-as-It-breaks-all/m-p/1394280#M161786" target="_blank" rel="noopener"&gt;this thread&lt;/A&gt; for more information and several workarounds.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We expect to have a fix for this problem in the next oneAPI release.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 19:59:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Studio-and-CMake-compiler-identification-fails/m-p/1399764#M162016</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2022-07-12T19:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio and CMake compiler identification fails</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Studio-and-CMake-compiler-identification-fails/m-p/1400053#M162029</link>
      <description>&lt;P&gt;Any ideas on the release time frame for the next oneAPI?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 16:41:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Studio-and-CMake-compiler-identification-fails/m-p/1400053#M162029</guid>
      <dc:creator>JohnNichols</dc:creator>
      <dc:date>2022-07-13T16:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio and CMake compiler identification fails</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Studio-and-CMake-compiler-identification-fails/m-p/1400363#M162040</link>
      <description>&lt;P&gt;Current plan is Fall 2022.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 15:14:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Visual-Studio-and-CMake-compiler-identification-fails/m-p/1400363#M162040</guid>
      <dc:creator>Barbara_P_Intel</dc:creator>
      <dc:date>2022-07-14T15:14:27Z</dc:date>
    </item>
  </channel>
</rss>

