From a26488497cc765890dd5dff122a1f08ca6c5ca95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 2 Sep 2022 00:07:36 +0200 Subject: Improve build system. --- c/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c') diff --git a/c/CMakeLists.txt b/c/CMakeLists.txt index da411b2..d8c3ce5 100644 --- a/c/CMakeLists.txt +++ b/c/CMakeLists.txt @@ -44,7 +44,7 @@ if (CMAKE_GENERATOR MATCHES "Visual Studio") set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /MANIFEST:NO") target_compile_options(EpisodeBrowser PRIVATE /wd26451 /wd6385) target_include_directories(EpisodeBrowser PUBLIC ${MSVC_EXT_INCLUDE_DIR}) - find_library(LIBXML2 libxml2 HINTS ${MSVC_EXT_LINK_DIR}) + find_library(LIBXML2 libxml2 HINTS ${MSVC_EXT_LINK_DIR}/${CMAKE_GENERATOR_PLATFORM}) target_link_libraries(EpisodeBrowser comctl32 wininet ${LIBXML2}) else() target_include_directories(EpisodeBrowser PUBLIC C:/msys64/mingw64/include/libxml2) -- cgit v1.2.3