Skip to content

Commit

Permalink
add support for HAS_OLD_LIBDWARF to CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
turbolent committed Apr 22, 2023
1 parent f2356ed commit 6feda49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions w2c2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ foreach(TARGET w2c2 w2c2_test)
)

if(DWARF_FOUND)
if(DWARF_OLD)
target_compile_definitions(${TARGET} PUBLIC HAS_OLD_LIBDWARF=1)
else()
target_compile_definitions(${TARGET} PUBLIC HAS_LIBDWARF=1)
endif()
target_include_directories(${TARGET} PUBLIC ${DWARF_INCLUDE_DIRS})
target_link_directories(${TARGET} PUBLIC ${DWARF_LIBRARY_DIRS})
target_link_libraries(${TARGET} PUBLIC ${DWARF_LIBRARIES})
Expand Down

0 comments on commit 6feda49

Please sign in to comment.