Install corrosion as submodule. (#3348)
This will enable nixpkgs -- and any other distribution that builds in a network sandbox and/or wants to use their own corrosion package rather than building another one -- to do so without patching taskwarrior. Since we're already using submodules for libshared I don't think this should make the build process any more complicated for anyone else. See https://github.com/NixOS/nixpkgs/issues/300679#issuecomment-2041252688 for context.
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,3 +1,6 @@
|
||||
[submodule "src/libshared"]
|
||||
path = src/libshared
|
||||
url = https://github.com/GothenburgBitFactory/libshared.git
|
||||
[submodule "src/tc/corrosion"]
|
||||
path = src/tc/corrosion
|
||||
url = https://github.com/corrosion-rs/corrosion.git
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
cmake_minimum_required (VERSION 3.22)
|
||||
|
||||
FetchContent_Declare (
|
||||
Corrosion
|
||||
GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git
|
||||
GIT_TAG v0.4.7
|
||||
)
|
||||
FetchContent_MakeAvailable(Corrosion)
|
||||
add_subdirectory(${CMAKE_SOURCE_DIR}/src/tc/corrosion)
|
||||
|
||||
# Import taskchampion-lib as a CMake library.
|
||||
corrosion_import_crate(
|
||||
|
||||
1
src/tc/corrosion
Submodule
1
src/tc/corrosion
Submodule
Submodule src/tc/corrosion added at 8ddd6d56ca
Reference in New Issue
Block a user