solidity/cmake
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
..
scripts Remove trailing whitespace for all files in the repository. 2018-09-04 11:30:30 +02:00
templates Remove EWASM backend. 2023-05-11 10:56:55 -05:00
toolchains Update emscripten build to be compatible with new docker image. 2021-01-13 01:09:34 +01:00
EthBuildInfo.cmake Store compiler version in CBOR metadata 2019-05-08 22:21:50 +02:00
EthCcache.cmake CMake: Better ccache configuration 2017-09-20 16:39:41 +02:00
EthCheckCXXCompilerFlag.cmake Fixes CMake caching issues on Windows. 2019-11-27 12:30:12 +01:00
EthCompilerSettings.cmake Fix incorrect CMAKE_SOURCE_DIR usage 2023-06-08 19:17:34 +08:00
EthDependencies.cmake Increase minimum Boost version to 1.77 on Windows 2021-09-27 13:15:57 +02:00
EthOptions.cmake Remove the LLL compiler 2020-01-15 13:18:18 +00:00
EthPolicy.cmake Improve comment on CMP0115 2022-08-31 12:12:15 +03:00
EthToolchains.cmake Do not generally override CXX standard. 2020-09-01 14:29:44 +02:00
EthUtils.cmake [CMake] Refactor libsolc linker flag for EXPORTED_FUNCTIONS and make it more readable. 2022-03-09 13:03:23 +01:00
FindCLN.cmake Use imported CMake targets. 2018-12-17 15:15:11 +01:00
FindCVC4.cmake Use imported CMake targets. 2018-12-17 15:15:11 +01:00
FindGMP.cmake Use imported CMake targets. 2018-12-17 15:15:11 +01:00
FindZ3.cmake Proper cmake failure if z3 version cannot be determined. 2019-08-12 16:23:06 +02:00
fmtlib.cmake Fix incorrect CMAKE_SOURCE_DIR usage 2023-06-08 19:17:34 +08:00
jsoncpp.cmake Fix incorrect CMAKE_SOURCE_DIR usage 2023-06-08 19:17:34 +08:00
range-v3.cmake Fix incorrect CMAKE_SOURCE_DIR usage 2023-06-08 19:17:34 +08:00