Feature request / RFC: Improve the docs related to CMAKE[_CURRENT]_[SOURCE|BINARY|LIST]_DIR

I think that we may drastically improve the docs by clarifying difference between these variables.

As an example, we may start from this StackOverflow answer: cmake - Difference between CMAKE_CURRENT_SOURCE_DIR and CMAKE_CURRENT_LIST_DIR - Stack Overflow

What do you think about this?

Regards,
Alex.

Yes, I’d welcome a merge request to update the documentation of these variables with such clarification. I don’t think we should show include(src/CMakeLists.txt) as an example, but could demonstrate with another include(SomeModule) or similar example.

1 Like