> 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.
-- 

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:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to