Skip to content

Commit

Permalink
set C11 standard in CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
qno committed May 5, 2019
1 parent 8389d99 commit 79ec6ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 79ec6ca

Please sign in to comment.