Skip to content

Commit

Permalink
correct header install path
Browse files Browse the repository at this point in the history
  • Loading branch information
AugusteBourgois committed Aug 2, 2024
1 parent bfc22d5 commit d54655e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function(generate_parameter_library LIB_NAME YAML_FILE)
add_library(${LIB_NAME} INTERFACE ${PARAM_HEADER_FILE} ${VALIDATE_HEADER})
target_include_directories(${LIB_NAME} INTERFACE
$<BUILD_INTERFACE:${LIB_INCLUDE_DIR}>
$<INSTALL_INTERFACE:include/${LIB_NAME}>
$<INSTALL_INTERFACE:include/${PROJECT_NAME}/${LIB_NAME}>
)
set_target_properties(${LIB_NAME} PROPERTIES LINKER_LANGUAGE CXX)
target_link_libraries(${LIB_NAME} INTERFACE
Expand All @@ -89,7 +89,7 @@ function(generate_parameter_library LIB_NAME YAML_FILE)
tcb_span::tcb_span
tl_expected::tl_expected
)
install(DIRECTORY ${LIB_INCLUDE_DIR} DESTINATION include/${LIB_NAME})
install(DIRECTORY ${LIB_INCLUDE_DIR} DESTINATION include/${PROJECT_NAME}/${LIB_NAME})
endfunction()


Expand Down Expand Up @@ -128,7 +128,7 @@ function(generate_parameter_module LIB_NAME YAML_FILE)
add_library(${LIB_NAME} INTERFACE ${PARAM_HEADER_FILE} ${VALIDATE_HEADER})
target_include_directories(${LIB_NAME} INTERFACE
$<BUILD_INTERFACE:${LIB_INCLUDE_DIR}>
$<INSTALL_INTERFACE:include/${LIB_NAME}>
$<INSTALL_INTERFACE:include/${PROJECT_NAME}/${LIB_NAME}>
)

endfunction()
Expand Down

0 comments on commit d54655e

Please sign in to comment.