Merge pull request #339 from stekyne/msvc_library_prefix_fix

Minor cmake adjustments for MSVC builds to enable building fluidsynth as vcpkg package
This commit is contained in:
Tom M 2018-02-12 09:44:44 +01:00 committed by GitHub
commit 28a794a61c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,7 +91,7 @@ if ( CMAKE_SYSTEM MATCHES "OS2" )
endif ( CMAKE_SYSTEM MATCHES "OS2" )
# Initialize the library directory name suffix.
if (NOT MINGW)
if (NOT MINGW AND NOT MSVC)
if ( CMAKE_SIZEOF_VOID_P EQUAL 8 )
set ( _init_lib_suffix "64" )
else ( CMAKE_SIZEOF_VOID_P EQUAL 8 )
@ -179,7 +179,9 @@ if ( WIN32 )
set ( WINDOWS_LIBS "dsound;winmm;ws2_32" )
set ( LIBFLUID_CPPFLAGS "-DFLUIDSYNTH_DLL_EXPORTS" )
set ( FLUID_CPPFLAGS "-DFLUIDSYNTH_NOT_A_DLL" )
set ( CMAKE_DEBUG_POSTFIX "_debug" )
if (NOT MSVC)
set ( CMAKE_DEBUG_POSTFIX "_debug" )
endif()
# MinGW compiler (a Windows GCC port)
if ( MINGW )
set ( MINGW32 1 )