[CMake] file(READ) issue?
Bill Hoffman
bill.hoffman at kitware.com
Wed Mar 25 11:31:10 EDT 2009
Steven Van Ingelgem wrote:
> What I did (and solved the issue) is:
> file(READ "zconf.in.h" ZCONF_H)
> STRING(REPLACE "HAVE_STD_HEADERS_H" ${HAVE_STD_HEADERS_H} "${ZCONF_H}")
> file(WRITE "zconf.test" "${ZCONF_H}")
>
> Especially the quotes around the variable are important as otherwise
> CMake think it's an array and not a string... I think :)
>
You do know about configure_file right?
-Bill
More information about the CMake
mailing list