Profiling with CMake, C++, and Visual Studio 2012

后端 未结 2 1589
死守一世寂寞
死守一世寂寞 2021-02-08 20:05

I am using CMake 2.8.10.1 to generate project files for Visual Studio 2012 Ultimate (64-bit). The resulting solution contains a library, some tests, and some executables.

2条回答
  •  星月不相逢
    2021-02-08 21:02

    It seems I've found a way to fix it. You need to add win32 configuration under your project. Then profiler will see your project as launchable. For example, for the release configuration you should add the following

    
          Release
          Win32
     
    

    under

    
    

    Using the menu:

    • Build -> Configuration Manager
    • Goto row of the project to profile
    • In the platform column note that it will only have a x64 entry
    • Use dropdown and select Win32 for New platform:
    • -

提交回复
热议问题