[CMake] rsh
Ghiora Drori
drori at edrori.com
Sun Jan 7 11:43:55 EST 2007
Hi,
I am using cmake to build make files which produce the following compile
command:
/opt/SUNWspro62/bin/cc -mt -c /product/jmemnobs.c
-o /product/jmemnobs.o -D__SOLARIS__ -I/product/inc
How cam I get cmake to produce the following compile command instead:
/usr/bin/rsh 10.1.0.18 "cd /product ; /opt/SUNWspro62/bin/cc -mt -c
/product/jmemnobs.c
-o /product/jmemnobs.o -D__SOLARIS__ -I/product/inc "
The idea is to use the make file to compile remotly.
I could use a perl script instead of the /opt/SUNWspro62/bin/cc and pass
the rest of the arguments to it.
Like this:
/product/Remote.pl /usr/bin/rsh -10.1.0.18 /product
/opt/SUNWspro62/bin/cc -mt -c /product/jmemnobs.c
-o /product/jmemnobs.o -D__SOLARIS__ -I/product/inc
However I would prefer a "clean solutiion" via something like
PRE_CMAKE_C_COMPILER and POST_CMAKE_C_COMPILER
variables.
Also how do I get rid of the ";" when concatenating strings to a variable.
Thanks Ghiora
More information about the CMake
mailing list