浏览代码

Options added to conan recipe (#159).

main
offa 5 年前
父节点
当前提交
e16782a315
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. +10
    -0
      conanfile.py

+ 10
- 0
conanfile.py 查看文件

@@ -23,9 +23,19 @@ class ScopeguardConan(ConanFile):
"Catch2/2.9.2@catchorg/stable",
"trompeloeil/v35@rollbear/stable"
)
options = {
"unittest": ["ON", "OFF"],
"enable_compat_header": ["ON", "OFF"]
}
default_options = (
"unittest=ON",
"enable_compat_header=OFF"
)

def _configure_cmake(self):
cmake = CMake(self)
cmake.definitions["UNITTEST"] = self.options.unittest
cmake.definitions["ENABLE_COMPAT_HEADER"] = self.options.enable_compat_header
cmake.configure(source_folder=self._source_dir, build_folder="build")
return cmake


正在加载...
取消
保存