Skip to content

Commit

Permalink
Fix installation of interface-only libraries
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
  • Loading branch information
jviotti committed Oct 4, 2024
1 parent 1115265 commit 517e88a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmake/noa/library.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ function(noa_library)

if(NOA_LIBRARY_SOURCES)
set(ABSOLUTE_PRIVATE_HEADERS "${CMAKE_CURRENT_BINARY_DIR}/${NOA_LIBRARY_NAME}_export.h")
foreach(private_header IN LISTS NOA_LIBRARY_PRIVATE_HEADERS)
list(APPEND ABSOLUTE_PRIVATE_HEADERS "${INCLUDE_PREFIX}/${NOA_LIBRARY_NAME}_${private_header}")
endforeach()
else()
set(ABSOLUTE_PRIVATE_HEADERS)
endif()

foreach(private_header IN LISTS NOA_LIBRARY_PRIVATE_HEADERS)
list(APPEND ABSOLUTE_PRIVATE_HEADERS "${INCLUDE_PREFIX}/${NOA_LIBRARY_NAME}_${private_header}")
endforeach()

if(NOA_LIBRARY_NAMESPACE)
set(TARGET_NAME "${NOA_LIBRARY_NAMESPACE}_${NOA_LIBRARY_PROJECT}_${NOA_LIBRARY_NAME}")
set(ALIAS_NAME "${NOA_LIBRARY_NAMESPACE}::${NOA_LIBRARY_PROJECT}::${NOA_LIBRARY_NAME}")
Expand Down

0 comments on commit 517e88a

Please sign in to comment.