solidity/libsolutil
Jun Zhang 74a38fc3d8
Fix incorrect CMAKE_SOURCE_DIR usage
When using solidity as a third-party library (include it into our
project using FetchContent), we encountered a strange compilation error.
For some reason, cmake considers the root directory of the project as
the root directory of the dependency (solidity). This is because
solidity is incorrectly using CMAKE_SOURCE_DIR variable, which should be
PROJECT_SOURCE_DIR (The former one refers to the top-level source
directory that contains a CMakeLists.txt, while the latter refers to the
source directory of the most recent project() command)

I've created a repo for demonstration (https://github.com/junaire/test-solidity-fetch-content)

Signed-off-by: Jun Zhang <jun@junz.org>
2023-06-08 19:17:34 +08:00
..
Algorithms.h Add missing header to Algorithms.h. 2021-03-15 13:50:24 +01:00
AnsiColorized.h Add SPDX license identifier if not present already in source file 2020-07-17 20:24:12 +05:30
Assertions.h Adds solidity::util::unreachable() helper function. 2022-06-07 16:40:55 +02:00
CMakeLists.txt Fix incorrect CMAKE_SOURCE_DIR usage 2023-06-08 19:17:34 +08:00
Common.h libsolutil: Add missing include 2023-02-04 16:22:18 +01:00
CommonData.cpp Replace all locale-dependent operations with locale-agnostic counterparts 2022-03-07 17:23:08 +01:00
CommonData.h Update CI ubuntu version to 2204 2023-01-12 10:37:29 +01:00
CommonIO.cpp Function to read a number of bytes from an input stream. 2021-12-01 16:24:56 +01:00
CommonIO.h Function to read a number of bytes from an input stream. 2021-12-01 16:24:56 +01:00
cxx20.h Control flow graph for Yul. 2021-07-15 15:24:12 +02:00
ErrorCodes.h Document the panic function of library deployment 2021-05-26 15:51:46 +01:00
Exceptions.cpp Add SPDX license identifier if not present already in source file 2020-07-17 20:24:12 +05:30
Exceptions.h Add solRequire() 2023-04-20 20:01:45 +02:00
FixedHash.h Drop implicit alignment argument from FixedHash 2022-09-27 17:58:32 +02:00
FunctionSelector.h Improve FunctionSelector helpers 2022-09-27 17:58:32 +02:00
IndentedWriter.cpp Add SPDX license identifier if not present already in source file 2020-07-17 20:24:12 +05:30
IndentedWriter.h Add SPDX license identifier if not present already in source file 2020-07-17 20:24:12 +05:30
IpfsHash.cpp Specify namespaces 2022-03-08 00:09:17 -05:00
IpfsHash.h Add SPDX license identifier if not present already in source file 2020-07-17 20:24:12 +05:30
JSON.cpp Make --pretty-json work with Standard JSON output 2021-07-26 16:00:46 +02:00
JSON.h De-macro helpers. 2022-11-01 12:49:22 +01:00
Keccak256.cpp Remove unneeded include files 2021-06-07 12:53:18 -04:00
Keccak256.h Add SPDX license identifier if not present already in source file 2020-07-17 20:24:12 +05:30
LazyInit.h Add SPDX license identifier if not present already in source file 2020-07-17 20:24:12 +05:30
LEB128.h Add LEB128 encoding functions & tests. 2020-09-28 16:06:19 -05:00
Numeric.cpp Fix compilation error. 2022-06-15 11:14:50 +02:00
Numeric.h Allow support for older boost and adjust docs 2023-01-18 10:51:14 +01:00
picosha2.h Adding fixes for signedness warnings in libsolutil 2020-06-02 19:01:29 +02:00
Result.h Add SPDX license identifier if not present already in source file 2020-07-17 20:24:12 +05:30
SetOnce.h Make annotations `SetOnce or optional` where feasible 2020-09-22 17:38:21 +02:00
StackTooDeepString.h Recommend via-ir whenever a stack too deep error is encountered. 2022-05-05 19:22:03 +02:00
StringUtils.cpp changed output of formatNumberReadable so that it shows powers of two and one-less-than powers of two in a more compact format 2022-11-14 17:37:38 +01:00
StringUtils.h Remove the inaccurate Type::categoryName() and change the error message for invalid calls to one independent of the category 2023-04-20 13:50:22 +02:00
SwarmHash.cpp Fix undefined behaviour on 32-bit platforms in swarm hash. 2021-01-13 15:52:58 +01:00
SwarmHash.h Add SPDX license identifier if not present already in source file 2020-07-17 20:24:12 +05:30
TemporaryDirectory.cpp Allow running Eldarica from the command line 2022-11-22 21:16:45 +01:00
TemporaryDirectory.h Allow running Eldarica from the command line 2022-11-22 21:16:45 +01:00
UTF8.cpp Enable more C++ compiler warnings 2020-12-10 21:03:58 +00:00
UTF8.h Add SPDX license identifier if not present already in source file 2020-07-17 20:24:12 +05:30
vector_ref.h Update CI ubuntu version to 2204 2023-01-12 10:37:29 +01:00
Views.h Dereference. 2021-01-12 14:28:27 +01:00
Visitor.h Refix MSVC Debug crash 2022-04-26 01:52:56 +02:00
Whiskers.cpp Updated Whiskers for checking invalid tags 2022-09-29 07:36:29 +05:30
Whiskers.h Updated Whiskers for checking invalid tags 2022-09-29 07:36:29 +05:30