mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-27 13:47:12 -05:00
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
21 lines
787 B
JSON
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"
|
|
}
|
|
}
|
|
]
|
|
} |