Den 08. aug. 2013 17:32, skrev Matthew Woehlke:
> That said, have you tried naming the variable other than the name of a
> built-in command? I could imagine that might cause problems... 

Yes, I did not notice this problem by writing the hello world macro
initially. My macro was something along the lines of

set(MYBIN /path/to/somebin)
macro(run_test testname f1)
...
add_test(mytests_${testname} ${MYBIN} ${f1})
...
endmacro(run_test)

And then when I noticed that this did not work (all tests were called
mytests_, arguments were not added) I tried to just print ${testname} in
a message inside the macro and noticed it was emtpy.

Cheers,
Yngve
--

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