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)
|
target_link_libraries(86Box PkgConfig::FLUIDSYNTH)
|
||||||
if(STATIC_BUILD)
|
if(STATIC_BUILD)
|
||||||
target_link_libraries(86Box -static ${FLUIDSYNTH_STATIC_LIBRARIES} -fopenmp)
|
target_link_libraries(86Box -static ${FLUIDSYNTH_STATIC_LIBRARIES} -fopenmp)
|
||||||
if(WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "ARM64")
|
if(WIN32)
|
||||||
target_link_libraries(86Box psapi)
|
add_compile_definitions(FLUIDSYNTH_NOT_A_DLL)
|
||||||
|
|
||||||
|
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "ARM64")
|
||||||
|
target_link_libraries(86Box psapi)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@@ -7,7 +7,6 @@
|
|||||||
#ifdef __unix__
|
#ifdef __unix__
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
#define FLUIDSYNTH_NOT_A_DLL
|
|
||||||
#include <fluidsynth.h>
|
#include <fluidsynth.h>
|
||||||
|
|
||||||
#include <86box/86box.h>
|
#include <86box/86box.h>
|
||||||
|
Reference in New Issue
Block a user