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 _______________________________________________ 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
