Re: [CMake] Tree-like trace of add_subdirectory & include?

2019-08-14 Thread Deij-van Rijswijk, Menno
Hi Johan,

Have you tried the trace mode of CMake? I got reasonably useful results with

cmake [path] [options] --trace 2>&1 | grep subdirectory

Gr,
Menno

From: CMake mailto:cmake-boun...@cmake.org>> On Behalf 
Of Johan Holmberg
Sent: Wednesday, August 14, 2019 11:30 AM
To: cmake@cmake.org
Subject: [CMake] Tree-like trace of add_subdirectory & include?

Hi!
I'm trying to understand a large project built with CMake, and think it would 
be very helpful to get a view of which CMake-file "calls" which other 
CMake-file. I'm interested in the chain of calls using "add_subdirectory" and 
"include".

I have looked at the options "--debug-output" and "--trace", but they only give 
a "flat" view of the call graph. And reconstructing a tree-like representation 
from that info seems non-trivial to me.

I'm hoping to get something like this (I hope the intended indentation can be 
seen):

CMakeLists.txt
 MyMacros/Setup.cmake
  MyMacros/OtherStuff.cmake
 lib1/CMakeLists.txt
 lib2/CMakeLists.txt
 Misc/CMakeLists.txt
  prog_a/CMakeLists.txt
  prog_b/CMakeLists.txt
 foo/CMakeLists.txt

Is there some way to accomplish this, or something similar?

/Johan Holmberg



Help us improve the spam filter. If this message contains SPAM, click 
here
 to report. Thank you, MARIN Support Group

dr. ir. Menno A. Deij-van Rijswijk | Researcher | Research & Development
MARIN | T +31 317 49 35 06 | m.d...@marin.nl | 
www.marin.nl

[LinkedIn] [YouTube] 
  [Twitter] 
  [Facebook] 

MARIN news: Alternative fuels and power systems for support 
vessels


-- 

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


[CMake] Tree-like trace of add_subdirectory & include?

2019-08-14 Thread Johan Holmberg
Hi!
I'm trying to understand a large project built with CMake, and think it
would be very helpful to get a view of which CMake-file "calls" which other
CMake-file. I'm interested in the chain of calls using "add_subdirectory"
and "include".

I have looked at the options "--debug-output" and "--trace", but they only
give a "flat" view of the call graph. And reconstructing a tree-like
representation from that info seems non-trivial to me.

I'm hoping to get something like this (I hope the intended indentation can
be seen):

CMakeLists.txt
 MyMacros/Setup.cmake
  MyMacros/OtherStuff.cmake
 lib1/CMakeLists.txt
 lib2/CMakeLists.txt
 Misc/CMakeLists.txt
  prog_a/CMakeLists.txt
  prog_b/CMakeLists.txt
 foo/CMakeLists.txt

Is there some way to accomplish this, or something similar?

/Johan Holmberg
-- 

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


[Cmake-commits] CMake branch, master, updated. v3.15.2-645-g789e585

2019-08-14 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
   via  789e585ad9417bcc5bc4ebb68550ae3024742048 (commit)
  from  0312b6d522cfa0b72ef755a1bee9785383a9a6a4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=789e585ad9417bcc5bc4ebb68550ae3024742048
commit 789e585ad9417bcc5bc4ebb68550ae3024742048
Author: Kitware Robot 
AuthorDate: Thu Aug 15 00:01:06 2019 -0400
Commit: Kitware Robot 
CommitDate: Thu Aug 15 00:01:06 2019 -0400

CMake Nightly Date Stamp

diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake
index ef3fd9c..7888789 100644
--- a/Source/CMakeVersion.cmake
+++ b/Source/CMakeVersion.cmake
@@ -1,7 +1,7 @@
 # CMake version number components.
 set(CMake_VERSION_MAJOR 3)
 set(CMake_VERSION_MINOR 15)
-set(CMake_VERSION_PATCH 20190814)
+set(CMake_VERSION_PATCH 20190815)
 #set(CMake_VERSION_RC 0)
 set(CMake_VERSION_IS_DIRTY 0)
 

---

Summary of changes:
 Source/CMakeVersion.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
https://cmake.org/mailman/listinfo/cmake-commits