[cmake-developers] Green Hills MULTI Generator Recommendations
Brad King
brad.king at kitware.com
Tue Jul 5 14:13:59 EDT 2016
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
More information about the cmake-developers
mailing list