Files
ResInsight/CMakePresets.json
T
Magne Sjaastad 61504636b2 Updates CMake version requirements and workflow
Removes the CMake version check that caused issues with newer CMake versions.

Prints the CMake version in the workflow to aid in debugging.

Sets a minimum CMake policy version in CMakePresets.json. This is required to be able to build with CMake 4
2025-07-08 16:42:17 +02:00

21 lines
787 B
JSON

{
"version": 2,
"configurePresets": [
{
"name": "ninja",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "ThirdParty/vcpkg/scripts/buildsystems/vcpkg.cmake",
"VCPKG_INSTALL_OPTIONS": "--disable-metrics;--clean-after-build",
"RESINSIGHT_INCLUDE_APPLICATION_UNIT_TESTS": true,
"RESINSIGHT_TREAT_WARNINGS_AS_ERRORS": true,
"RESINSIGHT_ENABLE_UNITY_BUILD": false,
"RESINSIGHT_ENABLE_GRPC": false,
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/install",
"CMAKE_POLICY_VERSION_MINIMUM": "3.5"
}
}
]
}