Only define FLUIDSYNTH_NOT_A_DLL when linking statically
This commit is contained in:
@@ -90,8 +90,12 @@ if(FLUIDSYNTH)
|
||||
target_link_libraries(86Box PkgConfig::FLUIDSYNTH)
|
||||
if(STATIC_BUILD)
|
||||
target_link_libraries(86Box -static ${FLUIDSYNTH_STATIC_LIBRARIES} -fopenmp)
|
||||
if(WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "ARM64")
|
||||
target_link_libraries(86Box psapi)
|
||||
if(WIN32)
|
||||
add_compile_definitions(FLUIDSYNTH_NOT_A_DLL)
|
||||
|
||||
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "ARM64")
|
||||
target_link_libraries(86Box psapi)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
@@ -7,7 +7,6 @@
|
||||
#ifdef __unix__
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#define FLUIDSYNTH_NOT_A_DLL
|
||||
#include <fluidsynth.h>
|
||||
|
||||
#include <86box/86box.h>
|
||||
|
Reference in New Issue
Block a user