Discussion:
[CMake] Finding out how "cmake" was run
Rob Boehne
2018-10-31 13:55:10 UTC
Permalink
All,

Is there some place where the command that cmake was run with gets stored?
GNU Autoconf projects write a config.log file, who’s first line is the command that was used to configure the project.
So when I go back later and try to pick up where I left off, it’s fairly easy –
I run “head config.log” and I see what I had configured to build in that directory.


[cid:***@01D3D0E3.DCFE6710]

Rob Boehne
Senior Software Architect | Datalogics, Inc.
+1.312.853.8351<tel:(312)%20853-8351> | ***@datalogics.com<mailto:***@datalogics.com>
datalogics.com<http://www.datalogics.com/> | blogs.datalogics.com<http://blogs.datalogics.com/>

Connect with us: Facebook<https://www.facebook.com/DatalogicsInc> | Twitter<https://twitter.com/DatalogicsInc> | LinkedIn<https://www.linkedin.com/company/datalogics?actionToken=p=p%3Dbiz-company-login%26c%3D3217e65a-bdc2-4b38-8f9c-13c982e8c529%26m%3Dcompany_feed%26n%3D0&t=a%3DisFolloweeOfPoster%253Dfalse%2526distanceFromActor%253D-1%2526actorType%253D%2526likedByUser%253Dfalse%2526targetId%253D%2526recentCommentUrns%253D%2526targetType%253D%2526sponsoredFlag%253DORGANIC%2526verbType%253Dlinkedin%25253Ashare%2526objectType%253Dlinkedin%25253Aarticle%2526totalShares%253D0%2526activityId%253Durn%25253Ali%25253Aactivity%25253A6263731876121362433%2526recentLikerUrns%253D%2526actorId%253Durn%25253Ali%25253Acompany%25253A14000%2526totalComments%253D0%2526relevanceScore%253D0.0%2526recentCommenterUrns%253D%2526isPublic%253Dtrue%2526time%253D-1%2526totalLikes%253D0%2526objectId%253Durn%25253Ali%25253Aarticle%25253A7793179909183391510%2526distanceFromNestedActor%253D-1%26s%3DORG> | YouTube<https://www.youtube.com/user/Datalogics>
Jean-Michaël Celerier
2018-10-31 14:03:27 UTC
Permalink
CMakeCache.txt has all these infos
Post by Rob Boehne
All,
Is there some place where the command that cmake was run with gets stored?
GNU Autoconf projects write a config.log file, who’s first line is the
command that was used to configure the project.
So when I go back later and try to pick up where I left off, it’s fairly easy –
I run “head config.log”  and I see what I had configured to build in
that directory.
*Rob Boehne*
Senior Software Architect | Datalogics, Inc.
datalogics.com <http://www.datalogics.com/> | blogs.datalogics.com
<http://blogs.datalogics.com/>
Connect with us: Facebook <https://www.facebook.com/DatalogicsInc> |
Twitter <https://twitter.com/DatalogicsInc> | LinkedIn
<https://www.linkedin.com/company/datalogics?actionToken=p=p%3Dbiz-company-login%26c%3D3217e65a-bdc2-4b38-8f9c-13c982e8c529%26m%3Dcompany_feed%26n%3D0&t=a%3DisFolloweeOfPoster%253Dfalse%2526distanceFromActor%253D-1%2526actorType%253D%2526likedByUser%253Dfalse%2526targetId%253D%2526recentCommentUrns%253D%2526targetType%253D%2526sponsoredFlag%253DORGANIC%2526verbType%253Dlinkedin%25253Ashare%2526objectType%253Dlinkedin%25253Aarticle%2526totalShares%253D0%2526activityId%253Durn%25253Ali%25253Aactivity%25253A6263731876121362433%2526recentLikerUrns%253D%2526actorId%253Durn%25253Ali%25253Acompany%25253A14000%2526totalComments%253D0%2526relevanceScore%253D0.0%2526recentCommenterUrns%253D%2526isPublic%253Dtrue%2526time%253D-1%2526totalLikes%253D0%2526objectId%253Durn%25253Ali%25253Aarticle%25253A7793179909183391510%2526distanceFromNestedActor%253D-1%26s%3DORG> |
YouTube <https://www.youtube.com/user/Datalogics>
Ian Cullen
2018-10-31 14:17:40 UTC
Permalink
Looks like someone had a similar idea to you a few days ago -
https://gitlab.kitware.com/cmake/cmake/issues/18505

Also discussed previously:
https://gitlab.kitware.com/cmake/cmake/issues/14756
https://gitlab.kitware.com/cmake/cmake/issues/16833
Post by Jean-Michaël Celerier
CMakeCache.txt has all these infos
Post by Rob Boehne
All,
Is there some place where the command that cmake was run with gets stored?
GNU Autoconf projects write a config.log file, who’s first line is
the command that was used to configure the project.
So when I go back later and try to pick up where I left off, it’s fairly easy –
I run “head config.log”  and I see what I had configured to build in
that directory.
*Rob Boehne*
Senior Software Architect | Datalogics, Inc.
datalogics.com <http://www.datalogics.com/> | blogs.datalogics.com
<http://blogs.datalogics.com/>
Connect with us: Facebook <https://www.facebook.com/DatalogicsInc> |
Twitter <https://twitter.com/DatalogicsInc> | LinkedIn
<https://www.linkedin.com/company/datalogics?actionToken=p=p%3Dbiz-company-login%26c%3D3217e65a-bdc2-4b38-8f9c-13c982e8c529%26m%3Dcompany_feed%26n%3D0&t=a%3DisFolloweeOfPoster%253Dfalse%2526distanceFromActor%253D-1%2526actorType%253D%2526likedByUser%253Dfalse%2526targetId%253D%2526recentCommentUrns%253D%2526targetType%253D%2526sponsoredFlag%253DORGANIC%2526verbType%253Dlinkedin%25253Ashare%2526objectType%253Dlinkedin%25253Aarticle%2526totalShares%253D0%2526activityId%253Durn%25253Ali%25253Aactivity%25253A6263731876121362433%2526recentLikerUrns%253D%2526actorId%253Durn%25253Ali%25253Acompany%25253A14000%2526totalComments%253D0%2526relevanceScore%253D0.0%2526recentCommenterUrns%253D%2526isPublic%253Dtrue%2526time%253D-1%2526totalLikes%253D0%2526objectId%253Durn%25253Ali%25253Aarticle%25253A7793179909183391510%2526distanceFromNestedActor%253D-1%26s%3DORG> |
YouTube <https://www.youtube.com/user/Datalogics>
Alan W. Irwin
2018-10-31 23:12:35 UTC
Permalink
Post by Ian Cullen
Looks like someone had a similar idea to you a few days ago -
https://gitlab.kitware.com/cmake/cmake/issues/18505
https://gitlab.kitware.com/cmake/cmake/issues/14756
https://gitlab.kitware.com/cmake/cmake/issues/16833
In addition I requested something like this roughly a decade ago although
it has likely not propagated all the way from the bug tracker back then
to this latest generation of the bug tracker.

I think simply reporting back most cmake arguments specified on the
command line is completely straightforward, i.e., what is
reported back would simply be a list of all cmake arguments that were
specified by the user. But the -D subset of the arguments are a special case
because there are cache complications.

For that subset what is useful to me is what was requested in 14756, i.e.,
give the user a minimal set of cmake arguments that allow them to
reproduce the build starting from an empty build tree. (For example,
if the user specified a -D value which happened to be the default presented
by the option command, this unnecessary -D value
would be dropped from this minimal list.) I guess 16833 (which asked
just for whatever the last set of cmake options were regardless of
cache state) might have a use case as well, but in the discussion
there the requester finally decided that 14756 would satisfy his
needs.

In sum, it would be great from my perspective if the "reproduce the
build from empty build-tree case" use case presented in 14756 (and also very long ago by me) was
finally addressed.

Alan
__________________________
Alan W. Irwin

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________
--
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:
https://cmake.org/mailman/listinfo/cmake
Loading...