CMake: fix more linking errors in dynamic mode

This commit is contained in:
李通洲 2024-09-27 00:19:07 +08:00
parent 254876b9e6
commit 8bbc985d98
2 changed files with 9 additions and 1 deletions

View File

@ -1169,6 +1169,14 @@ if(LINUX)
target_link_libraries(libfastfetch
PRIVATE "m"
)
if(ENABLE_DIRECTX_HEADERS)
if(NOT BINARY_LINK_TYPE STREQUAL "dlopen")
target_link_libraries(libfastfetch
PRIVATE "/usr/lib/wsl/lib/libdxcore.so"
)
endif()
endif()
elseif(APPLE)
target_link_libraries(libfastfetch
PRIVATE "-framework AVFoundation"

View File

@ -30,7 +30,7 @@ struct FFMtmlData
MtmlSystem *sys;
} mtmlData;
static void shutdownMtml()
FF_MAYBE_UNUSED static void shutdownMtml(void)
{
mtmlData.ffmtmlLibraryShutDown(mtmlData.lib);
}