Questions tagged [cmake-generators]

Each buildsystem supported by CMake has a "CMake generator", which takes a CMake configuration and generates that type of buildystem for that configuration. Such generators / supported buildsystems include (but are not limited to): Makefiles, Ninja, and Visual Studio.

For the official documentation on CMake generators, see manual/cmake-generators.7.html.

3 questions
1
vote
0 answers

Enable WPP tracing in a CMake generated Visual Studio project

I have a C++ dll project, that is generated from a CmakeLists.txt file, that looks something like this (using Visual Studio 2019): cmake_minimum_required (VERSION 3.23) include(CMakeParseArguments) project(test_sln) set(CMAKE_GENERATOR_TOOLSET…
user2281752
  • 145
  • 1
  • 9
1
vote
1 answer

How to perform verbose builds of a CMake project with Visual Studio 2019 generator

I am using Clion to work on a CMake project which needs to be built with a Visual Studio 16 2019 generator. When I run a build, Clion performs the following command: $ cmake.exe --build C:\\cmake-build-release --target FooTarget…
RAM
  • 2,257
  • 2
  • 19
  • 41
0
votes
0 answers

CMAKE extract generator expression with compile language

In CMake, how can I print a generator expression that has COMPILE_LANGUAGE values? Also, how can I extract the values for a specific COMPILE_LANGUAGE? Below is an example of what I need. The first case doesn't have COMPILE_LANGUAGE and works. The…
Topa
  • 90
  • 1
  • 8