首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >"libarchive“的cmake在OSX Maverick上失败

"libarchive“的cmake在OSX Maverick上失败
EN

Stack Overflow用户
提问于 2013-12-29 11:15:50
回答 1查看 766关注 0票数 0

我正在尝试使用cmake -G Xcode libarchive编译libarchive,根据正式建造指示

我已经通过mac端口安装了cmak2.8.12并使用了当前的CMakeList.txt

cmake -G Xcode libarchive输出

代码语言:javascript
复制
-- The C compiler identification is Clang 5.0.0
-- The CXX compiler identification is Clang 5.0.0
-- Check for working C compiler using: Xcode
-- Check for working C compiler using: Xcode -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Xcode
-- Check for working CXX compiler using: Xcode -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:177 (SET_TARGET_PROPERTIES):
  set_target_properties called with incorrect number of arguments.

CMake Error at CMakeLists.txt:193 (INSTALL_MAN):
  Unknown CMake command "INSTALL_MAN".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-12-29 16:32:43

从顶层目录(包含自述文件的目录)进行配置:

$ cmake -G Xcode。

各个目录中的辅助CMakeLists.txt文件不完整,不能由它们自己使用。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20824571

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档