Skip to content

Commit

Permalink
cmake: add compiler definitions required by Yosys
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Kotsynyak <[email protected]>
  • Loading branch information
Artem Kotsynyak committed Dec 7, 2022
1 parent 2af7097 commit a41d451
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/FindYosys.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ if(Yosys_FOUND)
add_library(Yosys::Yosys UNKNOWN IMPORTED)
set_target_properties(Yosys::Yosys PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${Yosys_INCLUDE_DIRS}"
INTERFACE_COMPILE_DEFINITIONS "_YOSYS_"
IMPORTED_LOCATION "${Yosys_LIBRARY}"
)
endif()
Expand Down

0 comments on commit a41d451

Please sign in to comment.