我有一个第三方库,现在我正在尝试添加一个柯南食谱,这样我就可以开始通过柯南管理这个库...
这个第三方库有一个CMakeLists.txt我需要手动添加编译器选项...有没有办法在配方中做到这一点?
CMakeLists.txt
cmake_minimum_required( VERSION 3.0 )
project( ProjectName
LANGUAGES CXX )
add_compile_options(-std=c++11). //I have to add this line
柯南文件.py
...
def source(self):
self.run("git clone --depth 1 --branch a_tag git@github.com:GITGROUP/project_name.git")
def build(self):
cmake = CMake(self)
cmake.configure(source_folder="project_name")
cmake.build()
...