File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,18 @@ cmake_policy(SET CMP0078 NEW)
99# Allows SWIG_MODULE_NAME to be set
1010cmake_policy (SET CMP0086 NEW)
1111
12- # Allows <PackageName>_ROOT to be used
12+ # CMP0074: Allows find_package to use <PackageName>_ROOT variables. This
13+ # policy was the original mechanism for letting users specify custom
14+ # dependency locations.
1315cmake_policy (SET CMP0074 NEW)
1416
17+ # CMP0144: Standardizes the use of <PACKAGENAME>_ROOT (uppercase) variables
18+ # in find_package. Newer CMake modules rely on this policy for consistent
19+ # behavior. Setting both CMP0074 and CMP0144 ensures that both older and
20+ # newer find modules correctly respect custom dependency paths, which is
21+ # critical for builds in non-standard environments.
22+ cmake_policy (SET CMP0144 NEW)
23+
1524# Allow AUTOUIC on generated source
1625cmake_policy (SET CMP0071 NEW)
1726
You can’t perform that action at this time.
0 commit comments