[cmake-developers] [CMake 0015530]: is it possible to run the build as a child process of cmake?
Mantis Bug Tracker
mantis at public.kitware.com
Thu Apr 23 18:05:17 EDT 2015
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
======================================================================
More information about the cmake-developers
mailing list