mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-21 19:31:40 +00:00
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:
commit
28a794a61c
1 changed files with 4 additions and 2 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue