-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.7.0
When using target_sources, it is common to prefix files with ${CMAKE_CURRENT_SOURCE_DIR} or ${CMAKE_CURRENT_BINARY_DIR}.
Example:
target_sources(foo PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/foo.h )
Without such a prefix I can click and jump to that file. But QtCreator does not allow it with this prefix. I understand that QtCreator has not enough information from the cmake server mode about the current value of variables. However, it would be nice to support some special and often used variables such as CMAKE_CURRENT_SOURCE_DIR.
For Gerrit Dashboard: QTCREATORBUG-21065 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
268685,3 | CMake: Support CMAKE_CURRENT_LIST_DIR and CMAKE_CURRENT_SOURCE_DIR | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |