我正在尝试使用cmake -G Xcode libarchive编译libarchive,根据正式建造指示
我已经通过mac端口安装了cmak2.8.12并使用了当前的CMakeList.txt
cmake -G Xcode libarchive输出
-- 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.发布于 2013-12-29 16:32:43
从顶层目录(包含自述文件的目录)进行配置:
$ cmake -G Xcode。
各个目录中的辅助CMakeLists.txt文件不完整,不能由它们自己使用。
https://stackoverflow.com/questions/20824571
复制相似问题