diff options
author | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-02-15 09:15:07 -0800 |
---|---|---|
committer | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-02-15 09:15:07 -0800 |
commit | 7c2a95dadffb001629ca975604e65b74fd683987 (patch) | |
tree | a1bfc27900106e2dd7d93629313f9809429b4cee /cmake | |
parent | 17ab90f8cd3f3407ebbcd8be946e25bac22488db (diff) | |
download | fpga-interchange-schema-7c2a95dadffb001629ca975604e65b74fd683987.tar.gz fpga-interchange-schema-7c2a95dadffb001629ca975604e65b74fd683987.tar.bz2 fpga-interchange-schema-7c2a95dadffb001629ca975604e65b74fd683987.zip |
Add INTERFACE path to library.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/cxx_static/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
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}) |