Skip to content

Commit

Permalink
fix: build for mythirdpartylib
Browse files Browse the repository at this point in the history
  • Loading branch information
abeimler committed Jul 3, 2022
1 parent 6a386ec commit 72ecd99
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/libs/mythirdpartylib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ add_library(mythirdpartylib STATIC src/Foo.cpp)
generate_export_header(mythirdpartylib)

target_include_directories(mythirdpartylib
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src
PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>" "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>"
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)
target_include_directories(mythirdpartylib
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
)

0 comments on commit 72ecd99

Please sign in to comment.