Merge pull request #2284 from bincrafters/docs/kb-h048

Add KB-H048 description
This commit is contained in:
Daniel
2020-08-11 14:18:23 +02:00
committed by GitHub

View File

@@ -293,4 +293,8 @@ The CMake definition CMAKE_VERBOSE_MAKEFILE helps for debugging when developing,
#### **<a name="KB-H047">#KB-H047</a>: "NO ASCII CHARACTERS"**
According to PEP [263](https://www.python.org/dev/peps/pep-0263/), Unicode literals should only appear in Python code if the encoding is declared on one of the first two lines of the source file. Without such a declaration, any Unicode literal will cause a syntax error for Python 2 interpreters.
According to PEP [263](https://www.python.org/dev/peps/pep-0263/), Unicode literals should only appear in Python code if the encoding is declared on one of the first two lines of the source file. Without such a declaration, any Unicode literal will cause a syntax error for Python 2 interpreters.
#### **<a name="KB-H048">#KB-H048</a>: "CMAKE VERSION REQUIRED"**
The file test_package/CMakeLists.txt should require CMake 3.1 by default: `cmake_minimum_required(VERSION 3.1)`. The CMake wrapper file can require CMake 2.8, because Conan recipe and the test package are totally separated. However, if `CMAKE_CXX_STANDARD` or `CXX_STANDARD` is explicit, CMake 3.1 is mandatory.