[cmake-developers] Re: set_tests_properties and several environment variables

David Cole dlrdave at aol.com
Tue Jun 25 12:14:25 EDT 2013


> 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_DIR}/group;NSS_WRAPPER_HOSTS=${CMAKE_CURRENT_BINARY_DIR}/hosts"

)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20130625/ed8fa4db/attachment.html>


More information about the cmake-developers mailing list