[CMake] Using quotes in ADD_TEST
Mathieu Malaterre
mathieu.malaterre at gmail.com
Thu Apr 26 08:11:20 EDT 2007
Are you sure you can execute that ? I am getting:
Test command: /usr/bin/python -c "from mymodule import *;test_mymodule()"
File "<string>", line 1
"from
^
SyntaxError: EOL while scanning single-quoted string
-- Process completed
***Failed
cmake 2.4.5, debian sarge
-M
On 4/26/07, Pau Garcia i Quiles <pgquiles at elpauer.org> wrote:
> Hello,
>
> What's the problem with that? CMake parses it fine here (CMake 2.4.6, Linux)
>
> If your problem is after that code you cannot call TEST_COMMAND(),
> maybe you should define it as a macro (cmake --help MACRO).
>
> --
> Pau Garcia i Quiles
> http://www.elpauer.org
> (Due to the amount of work, I usually need 10 days to answer)
>
>
> Quoting Mathieu Malaterre <mathieu.malaterre at gmail.com>:
>
> > Hello,
> >
> > Could someone please let me know what is wrong with this:
> >
> > SET(test_command
> > python -c "\"from mymodule import *\;test_mymodule()\""
> > )
> > SEPARATE_ARGUMENTS(test_command)
> >
> > ADD_TEST(PYTHON-TEST-MYMODULE ${test_command})
> >
> > thanks !
> >
> > --
> > Mathieu
> > _______________________________________________
> > CMake mailing list
> > CMake at cmake.org
> > http://www.cmake.org/mailman/listinfo/cmake
>
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
--
Mathieu
Tel: +33 6 32 13 33 40
More information about the CMake
mailing list