On 03/08/2012 03:45 PM, Darrell Anderson wrote: > I think I can do something like that in a shell script but I am unfamiliar with how to do the same in cmake. > > I don't mind doing the grunt work and testing, but I appreciate guidance to do this. > > Thanks! > > Darrell Darrell, Believe it or not, it shouldn't be that hard. I just had to learn this a couple hours ago trying to fix the libkscan library issue. Basically cmake has a script mode that lets you play with sections of the cmake scripts and look at what it is doing. What you need to do is create a file <somefilename.cmake> and put the syntax you want in there. Then run 'cmake -P somefilename.cmake' to make it go. See: http://www.cmake.org/cmake/help/syntax.html Use SET( varible_name " whatever in this string (supports \n, etc..)" ) Then you reference your varible_name by normal ${variable_name} syntax Then just use the following to dump output to see how it's going: MESSAGE(STATUS "stuff you want and ${variable_name}" ) You'll pick it up pretty quick :) -- David C. Rankin, J.D.,P.E.