Xcode 15.0.1 不允许生成器 Xcode 工具集规范字段 buildsystem=1

问题描述 投票:0回答:1
./make-project.sh 

-- cmake version 3.28.2
CMake Deprecation Warning at CMakeLists.txt:10 (cmake_policy):
  The OLD behavior for policy CMP0025 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:16 (cmake_policy):
  The OLD behavior for policy CMP0054 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Warning (dev) at CMakeLists.txt:19 (project):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at CMakeLists.txt:19 (project):
  Generator

    Xcode

  toolset specification field

    buildsystem=1

  is not allowed with Xcode 15.0.1.


-- Configuring incomplete, errors occurred!

尝试构建x265项目;

cmake --版本-> 3.28.2 xcode --版本 -> 15.0.1

设备 -> mac pro m3 pro

cmake xcode15 libx265
1个回答
0
投票

您必须为您的工具集设置另一个构建系统。如果您使用 CMake 预设,请输入“toolset”:“buildsystem=12”,或者直接调用 cmake -GXcode -T buildsystem=12。 Xcode 13.x 允许“buildsystem=1”

© www.soinside.com 2019 - 2024. All rights reserved.