From 7c2a95dadffb001629ca975604e65b74fd683987 Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Mon, 15 Feb 2021 09:15:07 -0800 Subject: Add INTERFACE path to library. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- cmake/cxx_static/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmake') diff --git a/cmake/cxx_static/CMakeLists.txt b/cmake/cxx_static/CMakeLists.txt index 99c9482..e5cfecb 100644 --- a/cmake/cxx_static/CMakeLists.txt +++ b/cmake/cxx_static/CMakeLists.txt @@ -32,4 +32,5 @@ add_library(fpga_interchange_capnp STATIC ${CAPNP_SRCS}) add_dependencies(fpga_interchange_capnp get_java_capnp_schema) target_link_libraries(fpga_interchange_capnp PRIVATE CapnProto::capnp) -set(FPGA_INTERCHANGE_CAPNP_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/../../interchange) +get_filename_component(FPGA_INTERCHANGE_CAPNP_INCLUDE_DIR "${CMAKE_CURRENT_BINARY_DIR}/../../interchange" ABSOLUTE) +target_include_directories(fpga_interchange_capnp INTERFACE ${FPGA_INTERCHANGE_CAPNP_INCLUDE_DIR}) -- cgit v1.2.3