Am Sonntag, 24. Juni 2018, 11:32:32 CEST schrieb QuaquaraquĆ : > Dear users, > > how do you specify the order of compilers to select from the system? > That is, if the user didn't set neither CMAKE_C_COMPILER nor the env. > var. CC, I wish the build system would pick one of the compilers from a > given list. In AutoConf, this is achieved through AC_PROG_CC([clang gcc > icc cc]) [1]. What would be the corresponding snippet in cmake?
CMake will look at /usr/bin/cc if nothing else is set. Eike
signature.asc
Description: This is a digitally signed message part.
-- 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