Skip to content

Instantly share code, notes, and snippets.

View Grafana Log Histogram
{
"id": 8,
"gridPos": {
"x": 0,
"y": 7,
"w": 23,
"h": 7
},
"type": "timeseries",
"title": "Log distribution",
View version_ranges_graph_test.py
from collections import namedtuple
import six
from parameterized import parameterized
from conans.errors import ConanException
from conans.model.ref import ConanFileReference
from conans.model.requires import Requirements
from conans.test.unittests.model.transitive_reqs_test import GraphTest
@monsdar
monsdar / CustomConanFile.py
Created Jan 31, 2019
Shows an issue with CMake() not being initializable from within the ctor. conan-io/conan issue #4437
View CustomConanFile.py
from conans import ConanFile, CMake
class CustomConanFile(ConanFile):
#new ctor (after 1.3.0)
def __init__(self, output, runner, display_name="", user=None, channel=None):
super(CustomConanFile, self).__init__(output, runner)
self.cmake = CMake(self)
#...some more stuff here...
View FindBoost.cmake
MESSAGE(STATUS "********* Conan FindBoost wrapper! **********")
# SET(Boost_DEBUG 1)
# SET(BOOST_ALL_MODULES atomic chrono container context coroutine date_time exception filesystem graph iostreams locale log_setup log math_c99 math_c99f math_c99l math_tr1 math_tr1f math_tr1l prg_exec_monitor program_options random regex serialization signals system test_exec_monitor thread timer unit_test_framework wave wserialization)
SET(BOOST_ALL_MODULES atomic chrono container context coroutine date_time filesystem graph iostreams locale log_setup log math_c99 math_c99f math_c99l math_tr1 math_tr1f math_tr1l prg_exec_monitor program_options random regex serialization signals system thread timer unit_test_framework wave wserialization)
IF(NOT Boost_FIND_COMPONENTS)
SET(Boost_FIND_COMPONENTS ${BOOST_ALL_MODULES})
SET(_Boost_COMPONENTS_SEARCHED ${BOOST_ALL_MODULES})
foreach (module ${BOOST_ALL_MODULES})
SET(Boost_FIND_REQUIRED_${module} 0) # Don't crash if not found