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                [email protected]

--

Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to