<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello Cmake community,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I would like to use Cmake to build research simulation programs in a Fujitsu supercomputer environment. Unfortunately, it seems that Cmake (version 3.14) does not support any compile feature for the Fujitsu C++ compiler (FCCpx, version 2.0.0 P-id: T01815-02
(Jul 12 2018 13:13:18)). I add I am pretty new to Cmake. Searching for similar issues, I found only this [thread](<a href="https://cmake.org/pipermail/cmake-developers/2014-August/010989.html" id="LPlnk552173">https://cmake.org/pipermail/cmake-developers/2014-August/010989.html</a>),
which talk about basic support of the compiler.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I tested it on a simple project, and the line:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
```cmake</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
target_compile_features(test PUBLIC cxx_std_11)</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
```</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
fails with this message:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
```</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>CMake Error at CMakeLists.txt:15 (target_compile_features):<br>
</span>
<div> target_compile_features no known features for CXX compiler<br>
</div>
<div><br>
</div>
<div> "Fujitsu"<br>
</div>
<div><br>
</div>
<div> version .<br>
</div>
<div><br>
</div>
<div>```</div>
<div><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
So, it seems that the compiler is detected (without its version), but compile features are not known. To be sure, I ran this simple test to list any supported features:</div>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
```cmake</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)<br>
</span>
<div>project(foobar CXX)<br>
</div>
<div>message("Your C++ compiler supports these C++ features:")<br>
</div>
<div>foreach(i ${CMAKE_CXX_COMPILE_FEATURES})<br>
</div>
<div> message("${i}")<br>
</div>
<span>endforeach()</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
```</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
and no feature are listed.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
So, what should I do from now on? Are there some people here using Cmake with Fujitsu who could help me? Should I propose a patch with the different compile features of the compiler? Or should I address it to Fujitsu?<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks for your help,<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0; margin-bottom:0">-- <br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0; margin-bottom:0"><b>Paul Zehner, Ph. D.</b><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0; margin-bottom:0">Invited Researcher</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0; margin-bottom:0">Numerical Simulation Research Unit</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0; margin-bottom:0"><b></b><i><b>Japan Aerospace Exploration Agency</b></i><b></b></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0; margin-bottom:0"><i>7-44-1 Jindaiji Higashi-machi, Chofu-shi, Tokyo</i></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0; margin-bottom:0"><i>182-8522, Japan</i></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0; margin-bottom:0"><i>Tel. +81-50-3362-7933</i></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0; margin-bottom:0"><i>Fax. +81-422-40-3327</i></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0; margin-bottom:0"><a href="mailto:zehner.paul@jaxa.jp" class="OWAAutoLink">zehner.paul@jaxa.jp</a></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0; margin-bottom:0"><a href="http://www.jaxa.jp" class="OWAAutoLink">www.jaxa.jp</a><br>
</p>
</div>
</div>
</body>
</html>