Skip to content

Commit

Permalink
Fix install interface to point to correct include dir
Browse files Browse the repository at this point in the history
The contents of the include directory are actually installed to
$PREFIX/include/sparta. So it is actually $PREFIX/include/sparta that
needs to be provided as an include directory, not just $PREFIX/include.
  • Loading branch information
Technius committed Dec 11, 2023
1 parent fb3fcf2 commit e037789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ add_library(sparta INTERFACE)

target_include_directories(sparta INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/sparta>
)

target_link_libraries(sparta INTERFACE ${Boost_LIBRARIES})
Expand Down

0 comments on commit e037789

Please sign in to comment.