mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-14 11:15:40 +00:00
Add option to use bundled libs
This commit is contained in:
parent
30ba4328e7
commit
3541e31457
3 changed files with 12 additions and 4 deletions
|
|
@ -12,7 +12,9 @@ block()
|
|||
include(FetchContent)
|
||||
set(FETCHCONTENT_FULLY_DISCONNECTED ON)
|
||||
|
||||
find_package(fmt 12.2 QUIET)
|
||||
if(NOT YOSYS_USE_BUNDLED_LIBS)
|
||||
find_package(fmt 12.2 QUIET)
|
||||
endif()
|
||||
if(fmt_FOUND)
|
||||
set(SLANG_USE_SYSTEM_FMT ON)
|
||||
else()
|
||||
|
|
@ -25,7 +27,9 @@ block()
|
|||
FetchContent_MakeAvailable(fmt)
|
||||
endif()
|
||||
|
||||
find_package(tomlplusplus 3.4 QUIET)
|
||||
if(NOT YOSYS_USE_BUNDLED_LIBS)
|
||||
find_package(tomlplusplus 3.4 QUIET)
|
||||
endif()
|
||||
if(tomlplusplus_FOUND)
|
||||
set(SLANG_USE_SYSTEM_TOMLPLUSPLUS ON)
|
||||
else()
|
||||
|
|
@ -37,7 +41,9 @@ block()
|
|||
FetchContent_MakeAvailable(tomlplusplus)
|
||||
endif()
|
||||
|
||||
find_package(Boost 1.87.0 CONFIG QUIET)
|
||||
if(NOT YOSYS_USE_BUNDLED_LIBS)
|
||||
find_package(Boost 1.87.0 CONFIG QUIET)
|
||||
endif()
|
||||
if(Boost_FOUND)
|
||||
set(SLANG_USE_SYSTEM_BOOST ON)
|
||||
else()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue