On 05/21/2015 09:31 AM, Taylor Braun-Jones wrote:
> I'm trying to implement a workaround solution for setting environment 
> variables
> in my Makefiles at build time. So what I started with was this:
> 
>   set(bullseye_environment COVFILE=${PROJECT_BINARY_DIR}/bullseye/test.cov)
>   add_custom_target(coverage_data
>     COMMAND env ${bullseye_environment}
>       ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR} --clean-first
>     COMMAND env ${bullseye_environment} ${CMAKE_CTEST_COMMAND} 
> --output-on-failure

We typically run coverage as part of nightly testing with a 'ctest -S'
dashboard client script.  The script surrounds the actual build
invocation and can take responsibility for adding things like COVFILE
to the environment.

-Brad

-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

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

Reply via email to