<div dir="ltr"><div>On Windows, cmake version 3.7.2, generating project files for visual studio 2017.</div><div><br></div>I have a file called "configure.bat" that I would like to place at the root of the visual studio project via regex.<div><br></div><div>Here is what I have tried along with where it put configure.bat:<br></div><div>1. no source_group -> "Source Files" folder</div><div>2. source_group("" FILES "configure.bat") -> at the root</div><div>3. source_group(" " FILES "configure.bat") -> at the root</div><div>4. source_group("x" REGULAR_EXPRESSION "configure\.bat") -> "x" folder</div><div>5. source_group("" REGULAR_EXPRESSION "configure\.bat") -> "Source Files" folder</div><div><div>6. source_group(" " REGULAR_EXPRESSION "configure\.bat") -> at the root</div></div><div><br></div><div>So it's possible to get the result I want using #6, but #5 seems wrong to me. Or if it's not wrong, and "" is suppose to restore the default, than #2 has a problem.</div><div><br></div><div>#3 and #6 are actually adding a filter with a single space as it's name, I suspect it only works because VS is normalizing it to an empty string when it reads the *.vcxproj.filters file.</div><div><br></div></div>