log4cxx: new version and fix for c++11 (#26480)
* Add version 0.12.1 * Add variant to build with C++11 standard build with c++11 standard requires boost threads, and needs explicit setting of CMAKE_CXX_STANDARD
This commit is contained in:
parent
c426386f46
commit
32f8dad0e2
@ -14,14 +14,21 @@ class Log4cxx(CMakePackage):
|
||||
|
||||
maintainers = ['nicmcd']
|
||||
|
||||
version('0.12.1', sha256='7bea5cb477f0e31c838f0e1f4f498cc3b30c2eae74703ddda923e7e8c2268d22')
|
||||
version('0.12.0', sha256='bd5b5009ca914c8fa7944b92ea6b4ca6fb7d146f65d526f21bf8b3c6a0520e44')
|
||||
|
||||
variant('cxxstd', default='17', description='C++ standard',
|
||||
values=('11', '17'), multi=False)
|
||||
|
||||
depends_on('cmake@3.13:', type='build')
|
||||
|
||||
depends_on('apr-util')
|
||||
depends_on('apr')
|
||||
depends_on('boost+thread+system', when='cxxstd=11')
|
||||
depends_on('zlib')
|
||||
depends_on('zip')
|
||||
|
||||
def cmake_args(self):
|
||||
return [self.define('BUILD_TESTING', 'off')]
|
||||
return [
|
||||
self.define_from_variant('CMAKE_CXX_STANDARD', 'cxxstd'),
|
||||
self.define('BUILD_TESTING', 'off')]
|
||||
|
Loading…
Reference in New Issue
Block a user