[cmake-developers] Green Hills MULTI Generator Recommendations

Geoffrey Viola Geoffrey.Viola at asirobots.com
Tue Jul 5 23:51:31 EDT 2016


> I am interested in using CMake with Green Hills MULTI
Great!

> 2. Is there a way in a toolchain file or on the command line to specify the directory where CMake should look for the compiler executables?
Take a look at https://gitlab.kitware.com/cmake/cmake/blob/master/Source/cmGlobalGhsMultiGenerator.cxx#L50-82. It's hard coded to find gbuild and the Green Hills arm compiler. Ideally it would find an arbitrary compiler on the system, unless specified in the toolchain file. Probably, CMake should search with some priority like x86 and then the others.

For a typical use case, you can take a look at the tests https://gitlab.kitware.com/cmake/cmake/blob/master/Tests/CMakeLists.txt#L2113-2139. There are two GHS specific test projects: Tests/GhsMulti and Tests/GhsMultiDuplicateSourceFilenames. These run nightly. Ideally, you should be able to run them without specifying anything arm related. The tests only confirms that it configures and compiles without errors. I use these as test projects, when developing.

This message contains confidential information and is intended only for the recipient. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately if you have received this e-mail by mistake and delete this e-mail from your system. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.


More information about the cmake-developers mailing list