-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add libassert 2.0.0 * Fixes/improvements * Try to fix conan v1 conanfile * Again * Printbug * Fix? * Revert "Fix?" This reverts commit ab47df7. * Silly me * Remove erlier setting of LIBASSERT2 in the main conanfile * Use better way to detect version in test package, and fix Windows shared copy * Add LIBASSERT_STATIC_DEFINE * Fix Conan v1 test package * Fix versions checks * generate cmake target for Conan 1.x Signed-off-by: Uilian Ries <[email protected]> * Update recipes/libassert/all/conanfile.py * Fix * Update patch * Export definition via component only * Review comments --------- Signed-off-by: Uilian Ries <[email protected]> Co-authored-by: Rubén Rincón Blanco <[email protected]> Co-authored-by: Uilian Ries <[email protected]>
- Loading branch information
1 parent
cd5d269
commit d1523f9
Showing
9 changed files
with
111 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
recipes/libassert/all/patches/2.0.0/0001-fix-export-and-include.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/include/libassert/assert-gtest.hpp b/include/libassert/assert-gtest.hpp | ||
index 912da40..57dbc91 100644 | ||
--- a/include/libassert/assert-gtest.hpp | ||
+++ b/include/libassert/assert-gtest.hpp | ||
@@ -6,8 +6,6 @@ | ||
#define LIBASSERT_PREFIX_ASSERTIONS | ||
#include <libassert/assert.hpp> | ||
|
||
-#include "tokenizer.hpp" | ||
- | ||
#if defined(_MSVC_TRADITIONAL) && _MSVC_TRADITIONAL != 0 | ||
#error "Libassert integration does not work with MSVC's non-conformant preprocessor. /Zc:preprocessor must be used." | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
cmake_minimum_required(VERSION 3.8) | ||
cmake_minimum_required(VERSION 3.15) | ||
|
||
project(test_package CXX) | ||
|
||
find_package(assert REQUIRED CONFIG) | ||
|
||
add_executable(${PROJECT_NAME} test_package.cpp) | ||
# don't link to ${CONAN_LIBS} or CONAN_PKG::package | ||
target_link_libraries(${PROJECT_NAME} PRIVATE assert::assert) | ||
# In case the target project need a specific C++ standard | ||
|
||
if(LIBASSERT2) | ||
find_package(libassert REQUIRED CONFIG) | ||
target_link_libraries(${PROJECT_NAME} PRIVATE libassert::assert) | ||
target_compile_definitions(${PROJECT_NAME} PRIVATE LIBASSERT2) | ||
else() | ||
find_package(assert REQUIRED CONFIG) | ||
target_link_libraries(${PROJECT_NAME} PRIVATE assert::assert) | ||
endif() | ||
|
||
|
||
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
versions: | ||
# Newer versions at the top | ||
"2.0.0": | ||
folder: all | ||
"1.2.2": | ||
folder: all | ||
"1.2.1": | ||
|