On 07/02/2016 02:21 PM, Chris Bux wrote: > I am interested in using CMake with Green Hills MULTI.
Adding Geoffrey Viola to Cc who implemented the current GHS support. > Should the MULTI generator provide a list of known compiler names > by architecture, or should we rely on users to set the appropriate > CMAKE_<LANG>_COMPILER variables in the toolchain file? The latter for now. > If the generator should provide a list of known compiler names, > would CMake's -A option be the appropriate way to specify the target > processor's platform? No, the -A option is for when the underlying build system (e.g. VS IDE) has declarative options to specify things like that. > 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? The find_program command is used for some generators. I don't recall if GHS does its own thing or not. One could add it to ENV{PATH} or see the documentation of the find_program command for how it searches. > 3. Is there a way to specify the make executable full path in the toolchain > file? Try making it a cache entry: set(CMAKE_MAKE_PROGRAM /path/to/gbuild CACHE FILEPATH "path to gbuild") Note that toolchain files are meant to be produced locally and hard-coded for a local machine, so such content is appropriate. Thanks, -Brad -- 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