Skip to content

Commit

Permalink
Allow the included mdio headers to have "mdio/" prefix in source incl…
Browse files Browse the repository at this point in the history
…udes
  • Loading branch information
BrianMichell committed Jul 31, 2024
1 parent df4f56f commit 8aabbf4
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 @@ -67,15 +67,15 @@ add_library(mdio INTERFACE)
# Specify the include directories for the interface library
target_include_directories(mdio INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include>
$<INSTALL_INTERFACE:include/mdio>
)

# Set the C++ standard
target_compile_features(mdio INTERFACE cxx_std_11)

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

# 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 8aabbf4

Please sign in to comment.