diff options
Diffstat (limited to 'vcpkg/ports/salome-configuration/cmake-4.patch')
| -rw-r--r-- | vcpkg/ports/salome-configuration/cmake-4.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vcpkg/ports/salome-configuration/cmake-4.patch b/vcpkg/ports/salome-configuration/cmake-4.patch new file mode 100644 index 0000000..d70aff6 --- /dev/null +++ b/vcpkg/ports/salome-configuration/cmake-4.patch @@ -0,0 +1,14 @@ +diff --git a/cmake/SalomeMacros.cmake b/cmake/SalomeMacros.cmake +index bb38859ee9..3b7662dcae 100644 +--- a/cmake/SalomeMacros.cmake ++++ b/cmake/SalomeMacros.cmake +@@ -23,9 +23,6 @@ + # Set-up global policies + #---------------------------------------------------------------------------- + CMAKE_POLICY(SET CMP0003 NEW) # Ensure proper linker behavior +-IF(WIN32) +- CMAKE_POLICY(SET CMP0020 OLD) # Disable automatic linking to qtmain.lib +-ENDIF(WIN32) + CMAKE_POLICY(SET CMP0053 NEW) # For correct Qt 5 detection procedure + IF(CMAKE_VERSION VERSION_GREATER_EQUAL 3.12) + CMAKE_POLICY(SET CMP0074 NEW) # Use ROOT variables when detecting packages |