From 4c9003ac8a0cb53bf7cef333a3f43d28d7625b24 Mon Sep 17 00:00:00 2001 From: "Javier G. Sogo" Date: Thu, 20 Aug 2020 16:57:57 +0200 Subject: [PATCH] Add docs about default_options (#2626) --- docs/error_knowledge_base.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/error_knowledge_base.md b/docs/error_knowledge_base.md index c480ae0c58..91452681e1 100644 --- a/docs/error_knowledge_base.md +++ b/docs/error_knowledge_base.md @@ -303,3 +303,7 @@ The file test_package/CMakeLists.txt should require CMake 3.1 by default: `cmake #### **#KB-H050: "DEFAULT SHARED OPTION VALUE"** By default, all packages should be built as static library (the option ``shared`` is ``False`` in ``default_options``). However, some projects can be restricted to shared library only, for those cases, open a new [issue](https://github.com/conan-io/hooks/issues) to include the package name in the allowlist. + +### **#KB-H051: "DEFAULT OPTIONS AS DICTIONARY"** + +The attribue `default_options` should be a dictionary, for example `default_options = {'shared': False, 'fPIC': True}`.