attach compile options to dfhack that allow protobuf headers to be included

develop
Myk Taylor 2023-06-17 10:00:54 -07:00
parent ca9a0fb7d1
commit 9dba18124e
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 3 additions and 0 deletions

@ -377,6 +377,9 @@ if(WIN32)
set_target_properties(dfhack-client PROPERTIES COMPILE_FLAGS "/FI\"Export.h\"" )
else()
set_target_properties(dfhack PROPERTIES COMPILE_FLAGS "-include Export.h" )
# required because of protobuf headers
target_compile_options(dfhack
PUBLIC -Wno-deprecated-declarations -Wno-restrict)
set_target_properties(dfhack-client PROPERTIES COMPILE_FLAGS "-include Export.h" )
add_library(dfhooks SHARED Hooks.cpp)
target_link_libraries(dfhooks dfhack)