From afc32b4c080a3d7801d8a71a18e7818789b686c7 Mon Sep 17 00:00:00 2001 From: xantares Date: Mon, 20 May 2019 15:24:15 +0200 Subject: [PATCH] Always use GNU install layout except MSVC Current for win32 targets the cmake config file is installed in INSTALL_PREFIX/CMake except for cygwin. But we want this also for MinGW, so I I'm thinking we want only this behavior for visual studio. What do you think ? --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5da214d..2f74872 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ target_include_directories(utf8cpp INTERFACE add_library(utf8::cpp ALIAS utf8cpp) if(UTF8_INSTALL) - if(WIN32 AND NOT CYGWIN) + if(MSVC) set(DEF_INSTALL_CMAKE_DIR CMake) else() include(GNUInstallDirs) # define CMAKE_INSTALL_*