Portable way to set filepaths in presets
It seems that there is no way to set filepaths in presets in a portable way, so that the same preset can be used Linux & Windows platforms.
Absence of this feature is introducing complications of using different presets for each platform and remembering different preset name per platforms, as well as increasing the size of of CMakePresets.json unnecessarily which I think it's intended to be as light as possible.
Some of the fields that may use different locations per platform:
- toolchainFile
- Linux path example → “/home/vcpkg”
- Windows path example → “H:/vcpkg”
- binaryDir
- include
Discourse topic: https://discourse.cmake.org/t/portable-way-to-set-filepaths-in-presets/7892
Edited by Abdelmaged Khalifa