Skip to content

Commit

Permalink
CMake: fix more linking errors in dynamic mode
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Sep 26, 2024
1 parent 254876b commit 8bbc985
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/detection/gpu/gpu_mthreads.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct FFMtmlData
MtmlSystem *sys;
} mtmlData;

static void shutdownMtml()
FF_MAYBE_UNUSED static void shutdownMtml(void)
{
mtmlData.ffmtmlLibraryShutDown(mtmlData.lib);
}
Expand Down

0 comments on commit 8bbc985

Please sign in to comment.