KDE4: Find the Internal package with NO_POLICY_SCOPE.
If someone in KDE wants to port away from OLD policies, they might want to do so one policy at a time. This patch will allow them to use find_package(KDE4 NO_POLICY_SCOPE) in callers to get around the CMP0011 warning, while still getting the policy settings contained within.
This commit is contained in:
parent
0d48bb6273
commit
4572d8b34e
|
@ -105,7 +105,7 @@ if (KDE4_DATA_DIR)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# use FindKDE4Internal.cmake to do the rest
|
# use FindKDE4Internal.cmake to do the rest
|
||||||
find_package(KDE4Internal ${_req} ${_quiet})
|
find_package(KDE4Internal ${_req} ${_quiet} NO_POLICY_SCOPE)
|
||||||
else ()
|
else ()
|
||||||
if (KDE4_FIND_REQUIRED)
|
if (KDE4_FIND_REQUIRED)
|
||||||
message(FATAL_ERROR "ERROR: cmake/modules/FindKDE4Internal.cmake not found in ${_data_DIR}")
|
message(FATAL_ERROR "ERROR: cmake/modules/FindKDE4Internal.cmake not found in ${_data_DIR}")
|
||||||
|
|
Loading…
Reference in New Issue