# Intel Profiler integration with Visual Studio under CMake Ninja build

**URL:** https://discourse.cmake.org/t/intel-profiler-integration-with-visual-studio-under-cmake-ninja-build/10062
**Category:** Usage
**Tags:** os:windows, gen:ninja
**Created:** [February 12, 2024, 3:18pm UTC](https://discourse.cmake.org/t/intel-profiler-integration-with-visual-studio-under-cmake-ninja-build/10062 "2024-02-12T15:18:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![TryerGit](https://discourse.cmake.org/user_avatar/discourse.cmake.org/tryergit/32/3777_2.png) [@TryerGit](https://discourse.cmake.org/u/TryerGit)
#### Post date: [February 12, 2024, 3:18pm UTC](https://discourse.cmake.org/t/intel-profiler-integration-with-visual-studio-under-cmake-ninja-build/10062/1 "2024-02-12T15:18:39Z")

</div>

While natively creating a Visual Studio Solution .sln file and opening a project via this, Intel profilers nicely integrate with the project/IDE. That is, if I have built a release version, clicking on the icon for Intel Inspector opens up a window where the target is the release built .exe file and then with a couple of button clicks, I can start figuring out the hotspots, etc.

On trying out the same under CMake ninja build, Intel profilers complain that there is currently no Visual Studio Solution loaded. Please open/create a solution to associate it with Intel Inspector.

Please see animated gif [here](https://imgur.com/a/6jCdQuj)

Is there a way Intel profiler can be made to work with CMake in Visual Studio? Should I be using a Visual Studio solution generator and then open the .sln files from there for this workflow?

Thanks.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [February 17, 2024, 6:23am UTC](https://discourse.cmake.org/t/intel-profiler-integration-with-visual-studio-under-cmake-ninja-build/10062/2 "2024-02-17T06:23:02Z")

</div>

If a full solution is needed, you may need to use the Visual Studio generator. I don’t know whether it is better for Intel to support VS loading CMake projects, VS to emulate a solution file for loaded CMake projects, or for Intel to support non-VS CMake projects. I’d ask on an Intel forum about any potential support from their side. A Microsoft feature request might be useful too, but that sounds like a large change.
