FOLDER
Targets with no FOLDER property will appear as top level entities in IDEs like Visual Studio. Targets with the same FOLDER property value will appear next to each other in a folder of that name. To nest folders, use FOLDER values such as 'GUI/Dialogs' with '/' characters separating folder levels.
方法如下:
因為機器上同時安裝了VC和VcExpress,CMake總是判斷為Express版,所以FOLDER設置總是無效。
最終打開sln文件看到了頭部的這行才找到問題原因:
# Visual C++ Express
然后在CMake源碼中找到了Express版本檢測代碼:
this->ExpressEdition = cmSystemTools::ReadRegistryValue( "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VCExpress\\14.0\\Setup\\VC;" "ProductDir", vc14Express, cmSystemTools::KeyWOW64_32);
Powered by: C++博客 Copyright © 金慶