Skip to content

Commit

Permalink
Updated include directories
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianMichell committed Jul 31, 2024
1 parent 5e07afd commit df4f56f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mdio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ add_library(mdio INTERFACE)

# Specify the include directories for the interface library
target_include_directories(mdio INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include>
)

Expand All @@ -75,7 +75,7 @@ target_compile_features(mdio INTERFACE cxx_std_11)

# Install targets
install(TARGETS mdio EXPORT mdioTargets)
install(DIRECTORY include/ DESTINATION include)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION include)

# Export the targets to be used with FetchContent
export(EXPORT mdioTargets FILE "${CMAKE_CURRENT_BINARY_DIR}/mdioTargets.cmake" NAMESPACE mdio::)
Expand Down

0 comments on commit df4f56f

Please sign in to comment.