On 2013-08-09 04:43, Yngve Inntjore Levinsen wrote:
Sorry all, I found my mistake. Essentially in the 'ctest -S script' I
moved all CTestTestfile.cmake to a binary directory using
configure_file() instead of file(COPY .. DESTINATION ..). The
configure_file evaluates all ${}, so the ${MESSAGE} was replaced by
nothing since the variable MESSAGE was not defined in the ctest script.

I'm not sure file(COPY) implements the same copy-if-different semantics as configure_file (or creates dependencies to re-run CMake when an input changes). You might want to use configure_file(COPYONLY) instead.

Note there is also an @ONLY if you do need to perform substitutions but need to leave ${} alone.

--
Matthew

--

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

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

Reply via email to