--- CMakeLists.txt.orig 2018-07-14 18:01:07 UTC
+++ CMakeLists.txt
@@ -257,7 +257,9 @@ ecm_generate_pri_file(BASE_NAME Qt${QTKEYCHAIN_VERSION
   INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_INCLUDEDIR}
   FILENAME_VAR pri_filename)
 
+if(NOT BUILD_WITH_QT4)
 install(FILES ${pri_filename} DESTINATION ${ECM_MKSPECS_INSTALL_DIR})
+endif()
 
 
 install(EXPORT Qt${QTKEYCHAIN_VERSION_INFIX}KeychainLibraryDepends

