I have a third party library that I am now attempting to add a conan recipe so I can start to manage this library via conan...
this third party library has a CMakeLists.txt
that I need to manually add a compiler option... is there a way I can do this in the recipe ?
CMakeLists.txt
cmake_minimum_required( VERSION 3.0 )
project( ProjectName
LANGUAGES CXX )
add_compile_options(-std=c++11). //I have to add this line
conanfile.py
...
def source(self):
self.run("git clone --depth 1 --branch a_tag git@github.com:GITGROUP/project_name.git")
def build(self):
cmake = CMake(self)
cmake.configure(source_folder="project_name")
cmake.build()
...