The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=15530 ====================================================================== Reported By: Bill Torpey Assigned To: ====================================================================== Project: CMake Issue ID: 15530 Category: CMake Reproducibility: always Severity: feature Priority: normal Status: new ====================================================================== Date Submitted: 2015-04-23 18:05 EDT Last Modified: 2015-04-23 18:05 EDT ====================================================================== Summary: is it possible to run the build as a child process of cmake? Description: When setting environment variables in a cmake script these obviously don't survive the invocation of cmake itself, and are therefore not available to the subsequent build command (e.g., make).
It would be very helpful if cmake could invoke the build as a sub-process such that any environment variables set in the cmake script would still be available. I realize that there are (many) other ways to accomplish a similar result. In our case, it would be nice to consolidate the build logic in one place (cmake), rather than to have it spread out in different scripts etc. I initially thought the --build option to cmake might do this, but it doesn't appear to (or I'm doing something wrong). ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2015-04-23 18:05 Bill Torpey New Issue ====================================================================== -- 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
