<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">Le 04/06/2018 à 10:16, Eric Noulard a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAPASGLqUCnmcA9tVQT95dp-xs5VriMFZ4Jpz495hdacpGJjtKw@mail.gmail.com">
<div dir="ltr"><br>
<br>
<div class="gmail_quote">
<div dir="ltr">Le lun. 4 juin 2018 à 09:59, Stéphane Ancelot
<<a href="mailto:sancelot@numalliance.com"
moz-do-not-send="true">sancelot@numalliance.com</a>> a
écrit :<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">hi<br>
<br>
is there a mactro for cpp ?<br>
</blockquote>
<div><br>
</div>
<div>You mean a CMake variable which would contain the path to
C preprocessor binary? </div>
<div><br>
</div>
<div>I don't think so, at list no xxx_<LANG>_xxx
variable seems to exists for that.</div>
<div>Did you check "cmake --help-variable-list" ?</div>
<div><br>
</div>
<div>May be you can ask the compiler to act a the C
pre-processor?</div>
<div><br>
</div>
<div>clang and gcc both accept the '-E' command line option to
only run the preprocessor.</div>
<div><br>
</div>
</div>
</div>
</blockquote>
I used ${CMAKE_C_COMPILER} -E <br>
<blockquote type="cite"
cite="mid:CAPASGLqUCnmcA9tVQT95dp-xs5VriMFZ4Jpz495hdacpGJjtKw@mail.gmail.com">
<div dir="ltr">
<div class="gmail_quote">
<div>otherwise you may probably call </div>
<div><br>
</div>
<div>find_program(C_PREPROCESSOR NAMES cpp)</div>
<div><br>
</div>
<div>In both cases I don't know how to discover that in a
cross-platform way.</div>
<div>Probably MSVC has another option for pre-processsing.</div>
<div><br>
</div>
<div>Eric</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<br>
Regards,<br>
<br>
S.Ancelot<br>
-- <br>
<br>
Powered by <a href="http://www.kitware.com"
rel="noreferrer" target="_blank" moz-do-not-send="true">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a
href="http://www.cmake.org/Wiki/CMake_FAQ"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake
community. For more information on each offering, please
visit:<br>
<br>
CMake Support: <a
href="http://cmake.org/cmake/help/support.html"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a
href="http://cmake.org/cmake/help/consulting.html"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a
href="http://cmake.org/cmake/help/training.html"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a
href="http://www.kitware.com/opensource/opensource.html"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>Eric<br>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>