标签:lease cmak cmake code bug unix arc conf 问题
命令行:
mkdir -p build/debug
cd build/debug
cmake -DCMAKE_BUILD_TYPE=debug -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF -DARCHIVE_INSTALL_DIR=. -G "Unix Makefiles" ../..
make
配置项CMakelists.txt:
c++标准 set(CMAKE_CXX_STANDARD 11)
设置Debug或者Release:
if(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Debug")
endif()
标签:lease cmak cmake code bug unix arc conf 问题
原文地址:https://www.cnblogs.com/kuipertan/p/10037512.html