From 66632e7a44191db638ab0353db95cda96a3409bf Mon Sep 17 00:00:00 2001 From: erw7 Date: Mon, 24 Feb 2020 15:47:11 +0900 Subject: [PATCH] build,cmake: Change installation location on MinGW MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MinGW prefers a POSIX like file system hierarchy. Therefore, it is appropriate that the installation destination is the same as UNIX. PR-URL: https://github.com/libuv/libuv/pull/2697 Reviewed-By: Saúl Ibarra Corretgé Reviewed-By: Jameson Nash --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ace6c9da..efce4a10 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -546,7 +546,7 @@ if(LIBUV_BUILD_TESTS) WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) endif() -if(UNIX) +if(UNIX OR MINGW) # Now for some gibbering horrors from beyond the stars... foreach(lib IN LISTS uv_libraries) list(APPEND LIBS "-l${lib}") @@ -573,7 +573,7 @@ if(UNIX) install(TARGETS uv_a ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) endif() -if(WIN32) +if(MSVC) install(DIRECTORY include/ DESTINATION include) install(FILES LICENSE DESTINATION .) install(TARGETS uv uv_a