Skip to content

Commit d353647

Browse files
Vincent Ramandarrachequesne
Vincent Raman
authored andcommitted
refactor: use standard install paths (#58)
1 parent 8d4fe20 commit d353647

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,14 @@ list(APPEND TARGET_LIBRARIES sioclient_tls)
7777

7878
endif()
7979

80+
include(GNUInstallDirs)
81+
8082
install(FILES ${ALL_HEADERS}
81-
DESTINATION "${CMAKE_CURRENT_LIST_DIR}/build/include"
83+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
8284
)
8385

8486
install(TARGETS ${TARGET_LIBRARIES}
85-
DESTINATION "${CMAKE_CURRENT_LIST_DIR}/build/lib/${CMAKE_BUILD_TYPE}"
87+
DESTINATION ${CMAKE_INSTALL_LIBDIR}
8688
)
8789

8890
if(BUILD_UNIT_TESTS)

0 commit comments

Comments
 (0)