Skip to content

Commit

Permalink
Fix cmake installation directory
Browse files Browse the repository at this point in the history
Summary:
We moved all header files into a subdirectory `include/sparta/`, but didn't change the CMakeLists.txt
This currently leads to installing header files under `include/sparta/sparta`.
Let's fix that.

Reviewed By: arnaudvenet

Differential Revision: D52070290

fbshipit-source-id: 0c6fb4f08beb688b9e47b615fe6b2aaea2925191
  • Loading branch information
arthaud authored and facebook-github-bot committed Dec 12, 2023
1 parent 49e71e5 commit 0ae7297
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 @@ -44,7 +44,7 @@ install(TARGETS sparta EXPORT sparta_target
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) # This is for Windows
install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/sparta)
install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

install(EXPORT sparta_target DESTINATION cmake)

Expand Down

0 comments on commit 0ae7297

Please sign in to comment.