Open Knitschi opened 3 years ago
Exploration Results:
CMakePresets.json
used by CMake vs. CMakeSettings.json
used by Visual Studio. CMakeSettings.json
file contains the generate command line for running cmake, which is probably not included in cmake provided file. So in order to support Visual Studios CMake mode we would need both files.Possible Tasks:
1_Configure.py
script to generate a CMakeUserPresets.json
file that inherits from a preset in the CMakePresets.json
file.3_Generate.py
script to use the --preset
option instead of the -C
option.
cmake 3.19 introduced the preset .json files for the same purpose for which I introduced my config.cmake files. Switching to default cmake solution would probably improve acceptance in the user base.
This ticket is about examining if cmakes preset files can replace the custom solution in CPFCMake and CPFBuildscripts and what would need to be done to implement it. We also have not yet removed the duplication of configuration information between the package manager configuration and the local configuration files.