Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qarchive: fix test_package build with qt6 #26526

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maksim-petukhov
Copy link
Contributor

Summary

Changes to recipe: qarchive/*

Motivation and Details

When building test_package and using qt6 this error occurs:

CMake Warning (dev) at D:/conan2/qtd87b8da2e6f46/p/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:2827 (if):
  Policy CMP0057 is not set: Support new IN_LIST if() operator.  Run "cmake
  --help-policy CMP0057" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  IN_LIST will be interpreted as an operator when the policy is set to NEW.
  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
  D:/conan2/qtd87b8da2e6f46/p/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:2884 (_qt_internal_add_deploy_support)
  D:/conan2/qtd87b8da2e6f46/p/lib/cmake/Qt6Core/Qt6CoreConfigExtras.cmake:30 (_qt_internal_setup_deploy_support)
  build/msvc-192-x86_64-17-release/generators/Qt6Config.cmake:38 (include)
  C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
  build/msvc-192-x86_64-17-release/generators/QArchiveConfig.cmake:24 (find_dependency)
  CMakeLists.txt:4 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at D:/conan2/qtd87b8da2e6f46/p/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:2827 (if):
  if given arguments:

    "NOT" "D:/cci/recipes/qarchive/all/test_package/build/msvc-192-x86_64-17-release/.qt/QtDeployTargets-\$<CONFIG>.cmake" "IN_LIST" "scripts"

  Unknown arguments specified

CMP0057 is required for the code in Qt6CoreMacros.cmake to work. This can be fixed by adjusting version in cmake_minimum_required (which is 3.16 for Qt)


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant