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] Fortran support for ninja

2019-08-07 Thread Deij-van Rijswijk, Menno
Hello,


Today I was trying to use the Ninja generator for CMake on a project containing 
Fortran and C++ source files. I got the error that ninja is not supported with 
CMake unless a special version of ninja is used that supports fortran.


I got the source for this version from https://github.com/Kitware/ninja , built 
it and put the resulting binary in the PATH.


I keep getting the error that ninja is not supported, and for some reason it 
insists that the ninja version is 1.7.2, while the version installed is 1.9.0.


How is this supposed to work? What am I doing wrong?


Thanks for your insight and taking time to help me out.


All the best,


Menno

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: 25th HISWA International Symposium, November 12 & 
13


-- 

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