On 4 June 2018 at 10:16, Eric Noulard <eric.noul...@gmail.com> wrote:
> > > In both cases I don't know how to discover that in a cross-platform way. > Probably MSVC has another option for pre-processsing. > The basic option is /P, with related options /EP and /C which control line numbering, comment suppression etc. Petr On 4 June 2018 at 10:16, Eric Noulard <eric.noul...@gmail.com> wrote: > > > Le lun. 4 juin 2018 à 09:59, Stéphane Ancelot <sance...@numalliance.com> > a écrit : > >> hi >> >> is there a mactro for cpp ? >> > > You mean a CMake variable which would contain the path to C preprocessor > binary? > > I don't think so, at list no xxx_<LANG>_xxx variable seems to exists for > that. > Did you check "cmake --help-variable-list" ? > > May be you can ask the compiler to act a the C pre-processor? > > clang and gcc both accept the '-E' command line option to only run the > preprocessor. > > otherwise you may probably call > > find_program(C_PREPROCESSOR NAMES cpp) > > In both cases I don't know how to discover that in a cross-platform way. > Probably MSVC has another option for pre-processsing. > > Eric > >> >> Regards, >> >> S.Ancelot >> -- >> >> Powered by www.kitware.com >> >> Please keep messages on-topic and check the CMake FAQ at: >> http://www.cmake.org/Wiki/CMake_FAQ >> >> Kitware offers various services to support the CMake community. For more >> information on each offering, please visit: >> >> CMake Support: http://cmake.org/cmake/help/support.html >> CMake Consulting: http://cmake.org/cmake/help/consulting.html >> CMake Training Courses: http://cmake.org/cmake/help/training.html >> >> Visit other Kitware open-source projects at http://www.kitware.com/ >> opensource/opensource.html >> >> Follow this link to subscribe/unsubscribe: >> https://cmake.org/mailman/listinfo/cmake >> > > > -- > Eric > > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > https://cmake.org/mailman/listinfo/cmake > >
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake