#50246: CMake PortGroup : generate a file in ${workpath} containing the complete cmake invocation --------------------------+-------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: | --------------------------+-------------------------------- Comment (by rjvbertin@…):
I'd love to see this feature in base, somehow: a single command including environment variables for how to do the configure stage.
Do you mean a way to call `port configure` repeatedly, ignoring when saved state says configure has already been done?
cmake does actually store it's original command line internal to the build (somewhere; I don't remember)
Part of the info is stored in the "preamble" (commented out lines) of CMakeCache.txt, the rest is based on what is stored in CMakeCache.txt. Presumably, that file is loaded to pre-initialise variables that could also be specified on the command line, meaning you don't need to do that in a repeat invocation. Of course that doesn't fly during the 1st invocation, and also presumes that repeat invocations (as could be done by an IDE) do not set arguments of their own. And what Michael said about the environment. -- Ticket URL: <https://trac.macports.org/ticket/50246#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X