Hacker News new | ask | show | jobs
by humanrebar 1809 days ago
> [Modern CMake] has added to the confusion over using CMake because there are many resources on the web that refer to the legacy style of CMake.

Has anyone else found this to be the case? All the resources I've seen in the last five years or so have been pretty consistent about encouraging modern CMake style, which in my mind encompasses:

- declare targets and set properties

- generator expressions

- support the default workflow

- use find_package to import targets

I do see some misinformation from time to time about using commands like `include_directories` when `target_include_directories` is clearly the better style now, but I guess I don't consider "good style" and "modern CMake" to be the same thing anymore.