CLion: This file does not belong to any project target
When I use CLion on a ROS project, I get the following banner when looking at .h files: This file does not belong to any project target, code insight features might not work properly.
Any insight?
To reproduce:
mkdir -p ~/catkin_ws/src
cd catkin_ws
catkin_make
source devel/setup.bash
cd src
git clone https://github.com/ros/geometry.git # Can be anything
cd ..
catkin_make
~/clion-2017.2.3/bin/clion.sh src/CMakeLists.txt
Then open any .h file to see the banner. Code completion works fine in .cpp files.
Thanks in advance!
Hi Clyde. I have the same issue with Clion 2017.2.3 It does NOT happen (i.e. the .h file is seen correctly) in Clion 2017.1.3 It seems like that you're using 2017.2.3 as well (from the last line of your code snippet).