[CMake] evaluate a generator experssion
Biddiscombe, John A.
biddisco at cscs.ch
Wed Jan 14 07:11:51 EST 2015
Hello list
I've got some test scripts which are called with test names and such like and I am using cmake expansion of vars to get from this
"$<TARGET_FILE:${framework}_server>"
to
"$<TARGET_FILE:hg_test_server>"
which is correct. But unfortunately, when I use
file(WRITE "stuff containing above string")
the file is written with "$<TARGET_FILE:hg_test_server>" inside it, and not the full path/name of the target as I'd hoped.
Is there a way to force the evaluation of the generator expression so it is correctly written out into the launch script?
thanks
JB
--
John Biddiscombe, email:biddisco @.at.@ cscs.ch
http://www.cscs.ch/
CSCS, Swiss National Supercomputing Centre | Tel: +41 (91) 610.82.07
Via Trevano 131, 6900 Lugano, Switzerland | Fax: +41 (91) 610.82.82
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150114/ba9516eb/attachment.html>
More information about the CMake
mailing list