From 79ec6caba4358bf1b8de67f3cf2ea31f5c81a85c Mon Sep 17 00:00:00 2001 From: Silvio Kunaschk Date: Sun, 5 May 2019 12:56:16 +0200 Subject: [PATCH] set C11 standard in CMake --- conanfile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conanfile.py b/conanfile.py index b502360..785c389 100644 --- a/conanfile.py +++ b/conanfile.py @@ -77,5 +77,8 @@ def _patchCMakeListsFile(self, src_dir): tools.replace_in_file(cmake_file, "{}".format(cmake_project_line), '''{} +set(CMAKE_C_STANDARD 11) include(${{CMAKE_BINARY_DIR}}/conanbuildinfo.cmake) conan_basic_setup()'''.format(cmake_project_line)) + + self.output.warn("set C11 Standard")