diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-10-01 11:03:50 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-10-01 14:57:16 +0200 |
commit | 4940f6d04c1ca3f8782928ae6c1f08287a002d9c (patch) | |
tree | 3ff1e1314ec5d933efb38ff09ba60f9c52f29a22 /src/corelib/Qt6Config.cmake.in | |
parent | 081ec14b256613e30837ebc6b2a0cf7919d2dc20 (diff) |
CMake: Remove old Qt 5 CMake build system files
Remove the stale Qt 5 CMake files.
Disable the generation of CMake files by the qmake build system,
it wouldn't create usable Qt 6 files anyway.
Keep mkspecs/features/create_cmake.prf and
mkspecs/features/cmake_functions.prf for now until we can confirm that
they are safe to remove.
Task-number: QTBUG-86827
Change-Id: Idcf59f4d7d5474171a9bf72904ff19adc8bc74cd
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/corelib/Qt6Config.cmake.in')
-rw-r--r-- | src/corelib/Qt6Config.cmake.in | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/src/corelib/Qt6Config.cmake.in b/src/corelib/Qt6Config.cmake.in deleted file mode 100644 index 6b6544f932..0000000000 --- a/src/corelib/Qt6Config.cmake.in +++ /dev/null @@ -1,51 +0,0 @@ - -if (CMAKE_VERSION VERSION_LESS 3.1.0) - message(FATAL_ERROR \"Qt5 requires at least CMake version 3.1.0\") -endif() - -if (NOT Qt5_FIND_COMPONENTS) - set(Qt5_NOT_FOUND_MESSAGE \"The Qt5 package requires at least one component\") - set(Qt5_FOUND False) - return() -endif() - -set(_Qt5_FIND_PARTS_REQUIRED) -if (Qt5_FIND_REQUIRED) - set(_Qt5_FIND_PARTS_REQUIRED REQUIRED) -endif() -set(_Qt5_FIND_PARTS_QUIET) -if (Qt5_FIND_QUIETLY) - set(_Qt5_FIND_PARTS_QUIET QUIET) -endif() - -get_filename_component(_qt5_install_prefix \"${CMAKE_CURRENT_LIST_DIR}/..\" ABSOLUTE) - -set(_Qt5_NOTFOUND_MESSAGE) - -include(${CMAKE_CURRENT_LIST_DIR}/Qt5ModuleLocation.cmake) - -foreach(module ${Qt5_FIND_COMPONENTS}) - find_package(Qt5${module} - ${_Qt5_FIND_PARTS_QUIET} - ${_Qt5_FIND_PARTS_REQUIRED} - PATHS ${_qt5_module_paths} NO_DEFAULT_PATH - ) - if (NOT Qt5${module}_FOUND) - string(CONFIGURE ${_qt5_module_location_template} _expected_module_location @ONLY) - - if (Qt5_FIND_REQUIRED_${module}) - set(_Qt5_NOTFOUND_MESSAGE \"${_Qt5_NOTFOUND_MESSAGE}Failed to find Qt5 component \\\"${module}\\\" config file at \\\"${_expected_module_location}\\\"\\n\") - elseif(NOT Qt5_FIND_QUIETLY) - message(WARNING \"Failed to find Qt5 component \\\"${module}\\\" config file at \\\"${_expected_module_location}\\\"\") - endif() - - unset(_expected_module_location) - endif() -endforeach() - -if (_Qt5_NOTFOUND_MESSAGE) - set(Qt5_NOT_FOUND_MESSAGE \"${_Qt5_NOTFOUND_MESSAGE}\") - set(Qt5_FOUND False) -endif() - -_qt5_Core_check_file_exists(\"${CMAKE_CURRENT_LIST_DIR}/Qt5ConfigVersion.cmake\") |