1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-01-15 22:58:02 +00:00

Compare commits

...

4 Commits

Author SHA1 Message Date
Henry Schreiner
ba68040e92 📝 Add @geir-t as a contributor 2020-02-17 14:03:09 +00:00
Henry Schreiner
42fd0434bb 📝 Add @jsoref as a contributor 2020-02-17 14:03:09 +00:00
geir-t
b974f81804
conan: Do not run tests when cross compiling (#430)
* conan: Do not run tests when cross compiling

Running conan create with a profile made for cross compiling would fail since the tests is not compiled for build OS

* Using suggestion from Conan docs

* conan: also add cross_building check in build step

Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
2020-02-17 14:02:45 +00:00
Christoph Bachhuber
80d8e942c5
Permanently remove cpplint's whitespace/indent check (#432) 2020-02-16 19:02:36 +01:00
5 changed files with 31 additions and 6 deletions

View File

@ -341,6 +341,24 @@
"contributions": [
"doc"
]
},
{
"login": "jsoref",
"name": "Josh Soref",
"avatar_url": "https://avatars0.githubusercontent.com/u/2119212?v=4",
"profile": "https://github.com/jsoref",
"contributions": [
"tool"
]
},
{
"login": "geir-t",
"name": "geir-t",
"avatar_url": "https://avatars3.githubusercontent.com/u/35292136?v=4",
"profile": "https://github.com/geir-t",
"contributions": [
"platform"
]
}
],
"contributorsPerLine": 7,

View File

@ -6,8 +6,9 @@ filter=-build/include_order # Requires unusual include order that encourages cr
filter=-readability/nolint # Conflicts with clang-tidy
filter=-runtime/references # Requires fundamental change of API, don't see need for this
filter=-whitespace/blank_line # Unnecessarily strict with blank lines that otherwise help with readability
filter=-whitespace/indent # Requires strange 3-space indent of private/protected/public markers
filter=-whitespace/parens,-whitespace/braces # Conflict with clang-format
# Filters to be included in future
filter=-whitespace/indent,-whitespace/comments
filter=-whitespace/comments

View File

@ -907,6 +907,10 @@ This project was created by [Henry Schreiner](https://github.com/henryiii) and m
<td align="center"><a href="https://github.com/KOLANICH"><img src="https://avatars1.githubusercontent.com/u/240344?v=4" width="100px;" alt=""/><br /><sub><b>KOLANICH</b></sub></a><br /><a href="#platform-KOLANICH" title="Packaging/porting to new platform">📦</a></td>
<td align="center"><a href="https://github.com/jgerityneurala"><img src="https://avatars2.githubusercontent.com/u/57360646?v=4" width="100px;" alt=""/><br /><sub><b>James Gerity</b></sub></a><br /><a href="https://github.com/CLIUtils/CLI11/commits?author=jgerityneurala" title="Documentation">📖</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/jsoref"><img src="https://avatars0.githubusercontent.com/u/2119212?v=4" width="100px;" alt=""/><br /><sub><b>Josh Soref</b></sub></a><br /><a href="#tool-jsoref" title="Tools">🔧</a></td>
<td align="center"><a href="https://github.com/geir-t"><img src="https://avatars3.githubusercontent.com/u/35292136?v=4" width="100px;" alt=""/><br /><sub><b>geir-t</b></sub></a><br /><a href="#platform-geir-t" title="Packaging/porting to new platform">📦</a></td>
</tr>
</table>
<!-- markdownlint-enable -->

View File

@ -1,5 +1,5 @@
from conans import ConanFile, CMake
from conans.tools import load
from conans.tools import load, cross_building
import re
@ -40,7 +40,8 @@ class CLI11Conan(ConanFile):
cmake.definitions["CLI11_SINGLE_FILE"] = "OFF"
cmake.configure()
cmake.build()
cmake.test()
if not cross_building(self.settings):
cmake.test()
cmake.install()
def package_id(self):

View File

@ -1,4 +1,4 @@
from conans import ConanFile, CMake
from conans import ConanFile, CMake, tools
import os
@ -16,5 +16,6 @@ class HelloTestConan(ConanFile):
self.copy("*.dylib*", dst="bin", src="lib")
def test(self):
os.chdir("bin")
self.run(".%sexample" % os.sep)
if not tools.cross_building(self.settings):
os.chdir("bin")
self.run(".%sexample" % os.sep)