From 42d4d33571b2ad8279a5299936a16a1077247fee Mon Sep 17 00:00:00 2001 From: lethosor Date: Thu, 17 Sep 2020 15:41:29 -0400 Subject: [PATCH] Only modify xlsxreader target if it was created Ref #1620 --- plugins/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 07e14fa11..77ab97f89 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -191,9 +191,10 @@ if(BUILD_SUPPORTED) dfhack_plugin(workNow workNow.cpp) dfhack_plugin(xlsxreader xlsxreader.cpp LINK_LIBRARIES lua xlsxio_read zip expat ${LIB_Z_LIB}) dfhack_plugin(zone zone.cpp LINK_LIBRARIES lua) + + target_include_directories(xlsxreader PRIVATE ${XLSXIO_INSTALL_DIR}/include) + add_dependencies(xlsxreader xlsxio_project) endif() -target_include_directories(xlsxreader PRIVATE ${XLSXIO_INSTALL_DIR}/include) -add_dependencies(xlsxreader xlsxio_project) # this is the skeleton plugin. If you want to make your own, make a copy and then change it option(BUILD_SKELETON "Build the skeleton plugin." OFF)