<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>It does work after setting CMAKE_C_SOURCE_FILE_EXTENSIONS inside
      the override. It should be set in a CMakeDetermineCompiler file
      though. I'll add language support for it next. <br>
    </p>
    <p><br>
    </p>
    <p>As a side note, wouldn't it be better to replace</p>
    <p>CMake/Modules/CMakeCCompiler.cmake.in:</p>
    <p><i>set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m)</i></p>
    <p><br>
    </p>
    <p>with:</p>
    <p><i>list(APPEND CMAKE_C_SOURCE_FILE_EXTENSIONS c;m )</i><br>
      <br>
    </p>
    <p>?<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 30/08/2019 12:41, hex wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:e313e30e-a626-ebea-ba70-ad94102127c3@gmail.com">I am
      still facing a problem: The build step is skipped only the link
      step is performed (I missed that in the beginning). It seems like
      the build step does not have any dependencies.
      <br>
      <br>
      <br>
      This is because different file extension are used. I cannot set
      CMAKE_C_SOURCE_FILE_EXTENSIONS because I believe `project`
      redefines the variable. If I set it afterwards it does not take
      effect. For now it works if I change the source file extension.
      <br>
      <br>
    </blockquote>
  </body>
</html>