question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support .in files (or just cmake.in)

See original GitHub issue

A common pattern is a .in file, which should be identified as the inner type, that is, MyConfig.cmake.in should be a CMake file, and pytest.ini.in should be an ini file, etc. AFAICT, this is not currently supported?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
henryiiicommented, Aug 2, 2020

CMake-format is explicitly supporting *.cmake.in files in it’s next release, so it would be very nice to be able to elegantly identify these (it actually caught me by surprise that they were not being picked up by default, since they are a very common file type in CMake).

(And an explicit regex is what I’m currently doing):

   types: [file]
   files: (\.cmake|CMakeLists.txt)(.in)?$
0reactions
henryiiicommented, Aug 2, 2020

(Sorry, meant to comment on the other issue - can update to say that the most recent release of cmake-format does already support cmake.in)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Overview | CMake
CMake supports in-place and out-of-place builds, and can therefore support multiple builds from a single source tree. CMake also supports static and dynamic ......
Read more >
Writing CMakeLists Files — Mastering CMake
CMakeLists files can be edited in almost any text editor. Some editors, such as Notepad++, come with CMake syntax highlighting and indentation support ......
Read more >
Running CMake
Running CMake for Windows / Microsoft Visual C++ (MSVC) ... Run cmake-gui.exe, which should be in your Start menu under Program Files, there...
Read more >
Getting Started — Mastering CMake
Basic CMake Usage¶ ... CMake takes one or more CMakeLists files as input and produces project files or Makefiles for use with a...
Read more >
Why CMake? — Mastering CMake
With CMake, once you write your input files you get support for new compilers and build systems for free because the support for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found