Naram Qashat wrote:

myscript.cmake
 file(READ ${FILE} ALL_STRINGS)
...
  message(${RESULT})

-Bill

Thanks, that worked very well. The only problems I had, though, were that the quotes were passed to the new invocation of CMake and that I had to use ERROR_VARIABLE instead of OUTPUT_VARIABLE, otherwise it works fine.


Great, glad it works for you.  At some point 2.X will be in the past... :)

-Bill
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to