From bf0ef08b5b800f49277cd652cfc6e0dd8736ce41 Mon Sep 17 00:00:00 2001 From: CharlesThobe Date: Thu, 6 Jan 2022 07:15:38 +0200 Subject: [PATCH] fix Windows linking (circular dependencies) --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c6e4251..4fbda88 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,7 @@ if(WIN32) add_compile_definitions( X64_WINDOWS_ABI CRLF=3 + OSD_WINDOWS ) else() add_compile_definitions( @@ -57,6 +58,7 @@ target_link_libraries(chdman PRIVATE utils expat 7z ocore_sdl zlib flac utf8proc if(UNIX) target_link_libraries(chdman PRIVATE pthread util) elseif(WIN32) +target_link_libraries(chdman PRIVATE utils) #circular dependency bs Windows only. target_link_libraries(chdman PRIVATE user32 winmm