> 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"

)
--

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