From bcef1c16fb5a36b499b46d6b0a22d625fefdaeed Mon Sep 17 00:00:00 2001 From: Thomas Karl Pietrowski Date: Sat, 23 Feb 2019 10:26:07 +0100 Subject: [PATCH] build: make cmake install LICENSE only once The license file is installed twice. Once where it should be installed and the second time into the pkg-config directory. Among other files from other projects it might be confusing why there is a license file among with other files. Additionally, that is normally not the right location for license files. Guess, that is only a copy/pasting mistake. PR-URL: https://github.com/libuv/libuv/pull/2204 Reviewed-By: Ben Noordhuis --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5dc61eb8..89b84699 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -383,7 +383,7 @@ if(UNIX) install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_DOCDIR}) - install(FILES LICENSE ${CMAKE_CURRENT_BINARY_DIR}/libuv.pc + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libuv.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) install(TARGETS uv LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) install(TARGETS uv_a ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})