Trigger cmake generate when new file is added

已回答

Hi,

My project is using a file(GLOB_RECURSE..) to add source and header files to the project.

When a new file is added, unless cmake is manually refreshed, the new file will not be compiled

Is there a way to trigger make generate (refresh):

  1. When new files are added? I've tried using file watchers without any luck
  2. Before each build?

 

0

Hello!

Currently the only solution is to manually reload project. Feel free to comment or upvote https://youtrack.jetbrains.com/issue/CPP-1369.

0

请先登录再写评论。