[cmake-developers] set_tests_properties and several environment variables
Andreas Schneider
asn at cryptomilk.org
Wed Jun 26 05:37:08 EDT 2013
On Tuesday 25 June 2013 16:14:25 David Cole wrote:
> > I have a strange issue with set_tests_properties() and several
> > ENVIRONMENT
> > definitions. Only the last one shows up in the generated ctest file.
> >
>
>
>
> > ...
>
>
>
> >
> > Should I open a bug or is this knows?
> >
>
>
>
> It’s known. In addition to the alternate way you already came up with (which
> is totally valid, and maybe even preferable...), you could also do:
>
> set_tests_properties(
> testsuite
> PROPERTIES
> ENVIRONMENT
> "LD_PRELOAD=${CMAKE_BINARY_DIR}/src/libnss_wrapper.so;NSS_WRAPPER_PASSWD=${
> CMAKE_CURRENT_BINARY_DIR}/passwd;NSS_WRAPPER_GROUP=${CMAKE_CURRENT_BINARY_DI
> R}/group;NSS_WRAPPER_HOSTS=${CMAKE_CURRENT_BINARY_DIR}/hosts"
> )
Thanks David, it isn't documented that it is a ; delimited list. I thought you
need to specify it several times.
-- andreas
--
Andreas Schneider GPG-ID: F33E3FC6
www.cryptomilk.org asn at cryptomilk.org
More information about the cmake-developers
mailing list