forked from conan-io/conan-center-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unfortunately, we discovered a small breakage in 0.4.0: we forgot to add one of the headers to `CMakeLists.txt`. I added a patch which fixes the build. Along the way, I also used Au's new options to avoid enabling tests and bringing in the GTest dependency. This means we don't need to keep using a version of the existing patch file for 0.3.5. I also updated the test file to be more idiomatic. Fixes conan-io#26181.
- Loading branch information
Showing
5 changed files
with
54 additions
and
1 deletion.
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
42 changes: 42 additions & 0 deletions
42
recipes/au/all/patches/0001-v0.4.0-add-static-cast-checkers-to-cmake.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,42 @@ | ||
From cbc9e0dcabad4216dcc39a6e5204c91bc08bda94 Mon Sep 17 00:00:00 2001 | ||
From: Chip Hogg <[email protected]> | ||
Date: Sun, 15 Dec 2024 14:05:18 -0500 | ||
Subject: [PATCH] Add `static_cast_checkers` to CMake | ||
|
||
This was apparently overlooked in #347. | ||
|
||
Helps #359. | ||
--- | ||
au/code/au/CMakeLists.txt | 9 +++++++++ | ||
1 file changed, 9 insertions(+) | ||
|
||
diff --git a/au/code/au/CMakeLists.txt b/au/code/au/CMakeLists.txt | ||
index edb965c..7c518bf 100644 | ||
--- a/au/code/au/CMakeLists.txt | ||
+++ b/au/code/au/CMakeLists.txt | ||
@@ -39,6 +39,7 @@ header_only_library( | ||
quantity.hh | ||
quantity_point.hh | ||
rep.hh | ||
+ static_cast_checkers.hh | ||
unit_of_measure.hh | ||
unit_symbol.hh | ||
wrapper_operations.hh | ||
@@ -465,6 +466,14 @@ gtest_based_test( | ||
au | ||
) | ||
|
||
+gtest_based_test( | ||
+ NAME static_cast_checkers_test | ||
+ SRCS | ||
+ static_cast_checkers_test.cc | ||
+ DEPS | ||
+ au | ||
+) | ||
+ | ||
gtest_based_test( | ||
NAME stdx_test | ||
SRCS | ||
-- | ||
2.34.1 | ||
|
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,3 +1,5 @@ | ||
versions: | ||
"0.3.5": | ||
folder: all | ||
"0.4.0": | ||
folder: all |