diff --git a/qad/FindQAD.cmake b/qad/FindQAD.cmake index 16e78fc..edd5486 100644 --- a/qad/FindQAD.cmake +++ b/qad/FindQAD.cmake @@ -1,9 +1,4 @@ -if (POLICY CMP0017) - cmake_policy(SET CMP0017 NEW) -endif() -if (POLICY CMP0011) - cmake_policy(SET CMP0011 NEW) -endif() +cmake_policy(SET CMP0020 NEW) # Automatically link Qt executables to qtmain target on Windows if(NOT LIBPROJECT) include(QtWraps) endif() diff --git a/qad/QtWraps.cmake b/qad/QtWraps.cmake index 296894b..3e46e6a 100644 --- a/qad/QtWraps.cmake +++ b/qad/QtWraps.cmake @@ -1,3 +1,4 @@ +cmake_policy(SET CMP0020 NEW) # Automatically link Qt executables to qtmain target on Windows set(_QT_VERSIONS_ 4 5)