mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Optionally use system provided corrosion (#3590)
This commit is contained in:
parent
49e09a9783
commit
3d30f2ac46
1 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,11 @@
|
|||
cmake_minimum_required (VERSION 3.22)
|
||||
|
||||
add_subdirectory(${CMAKE_SOURCE_DIR}/src/tc/corrosion)
|
||||
OPTION(SYSTEM_CORROSION "Use system provided corrosion instead of vendored version" OFF)
|
||||
if(SYSTEM_CORROSION)
|
||||
find_package(Corrosion REQUIRED)
|
||||
else()
|
||||
add_subdirectory(${CMAKE_SOURCE_DIR}/src/tc/corrosion)
|
||||
endif()
|
||||
|
||||
# Import taskchampion-lib as a CMake library.
|
||||
corrosion_import_crate(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue