[CMake] Set prefix/suffix globally?

Kishore, Jonnalagadda (IE10) Kishore.Jonnalagadda at honeywell.com
Wed Mar 21 23:36:55 EST 2007


> Filipe Sousa wrote:
> > Kishore, Jonnalagadda (IE10) wrote:
> >> Is it possible to set the prefix and suffix to "lib" and ".a" for
all
> >> libraries and ".elf" suffix to all executables?
> >
> > CMAKE_STATIC_LIBRARY_PREFIX
> > CMAKE_STATIC_LIBRARY_SUFFIX
> > CMAKE_SHARED_LIBRARY_PREFIX
> > CMAKE_SHARED_LIBRARY_SUFFIX
> > CMAKE_SHARED_MODULE_PREFIX
> > CMAKE_SHARED_MODULE_SUFFIX
> >
> 
> cmake --system-information|grep EXEC|grep SUFF
> CMAKE_EXECUTABLE_SUFFIX ""
> 
> SET(CMAKE_EXECUTABLE_SUFFIX ".elf")

Filipe, thanks for your response. I would really have been interested in
using 'cmake --system-information' as it seems to me that it would let
me know of some internal variables that I can hopefully set to achieve
desired results. However, the command fails with the error that the file
"--system-information does not exist".

Warm regards,
Kishore


More information about the CMake mailing list