mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
CMake: handle some conditional compiling
This commit is contained in:
parent
691fbf736a
commit
3900eadde0
7 changed files with 66 additions and 23 deletions
|
@ -44,8 +44,6 @@ target_sources(yosys_kernel INTERFACE
|
|||
ffmerge.h
|
||||
fmt.cc
|
||||
fmt.h
|
||||
fstdata.cc
|
||||
fstdata.h
|
||||
functional.cc
|
||||
functional.h
|
||||
hashlib.h
|
||||
|
@ -82,4 +80,11 @@ target_sources(yosys_kernel INTERFACE
|
|||
yw.h
|
||||
)
|
||||
|
||||
if (ENABLE_ZLIB)
|
||||
target_sources(yosys_kernel INTERFACE
|
||||
fstdata.cc
|
||||
fstdata.h
|
||||
)
|
||||
endif()
|
||||
|
||||
target_link_libraries(yosys PRIVATE yosys_kernel)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue