Relative Content

Tag Archive for cmake

cmake error in vcpkg manifest mode: Illegal characters in path

I’m falling the bellow mentioned link to use vcpkg package manager in manifest mode.
https://learn.microsoft.com/en-us/vcpkg/get_started/get-started-vs?pivots=shell-cmd
In the CMakeUserPresets.json I’m getting the bellow mentioned error.
I also tried providing the absolute path to my vcpkg.cmake file.

CMake Custom Target Configuration Allow Differing Outputs Without Rebuild

I have a custom target for my CMake file that is configurable in the number of output files it produces. If the caller passes a particular argument to my script, I want to generate more output files. The issue that I am struggling to resolve is that if the user doesn’t pass in the argument to generate more files, and the inputs haven’t changed, I want the target to be skipped.