diff options
Diffstat (limited to 'cmake/cxx_static')
-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}) |