Merge pull request #281 from fabiangreffrath/dont-set-lib-folder-suffix

do not set the library directory suffix when building with MinGW
This commit is contained in:
Tom M 2017-11-20 15:49:13 +01:00 committed by GitHub
commit 5017e4d2e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 )