From 6900d19eafde22f23895d992f3c733ac63382571 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Fri, 17 Nov 2017 22:15:46 +0100 Subject: [PATCH] do not set the library directory suffix when building with MinGW This is another patch from MSYS2: Omit the library directory suffix when building with MinGW for Windows. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ba87a6f5..72d4b46a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,11 +89,15 @@ if ( CMAKE_SYSTEM MATCHES "OS2" ) endif ( CMAKE_SYSTEM MATCHES "OS2" ) # Initialize the library directory name suffix. +if (NOT MINGW) if ( CMAKE_SIZEOF_VOID_P EQUAL 8 ) set ( _init_lib_suffix "64" ) else ( CMAKE_SIZEOF_VOID_P EQUAL 8 ) set ( _init_lib_suffix "" ) endif ( CMAKE_SIZEOF_VOID_P EQUAL 8 ) +else () + set ( _init_lib_suffix "" ) +endif() set ( LIB_SUFFIX ${_init_lib_suffix} CACHE STRING "library directory name suffix (32/64/nothing)" ) mark_as_advanced ( LIB_SUFFIX )