From ff82101b48485c90b8e7f49746e2883a1da614b8 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 29 Nov 2019 16:53:45 +0300 Subject: [PATCH] Fix build for Windows. --- external/CMakeLists.txt | 4 +++- external/openal/CMakeLists.txt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index d1981563..5e6d6fda 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -15,7 +15,9 @@ add_subdirectory(opus) add_subdirectory(qt) add_subdirectory(ranges) add_subdirectory(rlottie) -add_subdirectory(sp_media_key_tap) +if (APPLE) + add_subdirectory(sp_media_key_tap) +endif() add_subdirectory(variant) add_subdirectory(xxhash) add_subdirectory(zlib) diff --git a/external/openal/CMakeLists.txt b/external/openal/CMakeLists.txt index d7f528a7..9714ce87 100644 --- a/external/openal/CMakeLists.txt +++ b/external/openal/CMakeLists.txt @@ -14,7 +14,7 @@ if (WIN32) ) target_link_libraries(external_openal INTERFACE - ${libs_loc}/openal-soft/build/$,Debug,Release>/OpenAL32 + ${libs_loc}/openal-soft/build/$,Debug,Release>/OpenAL32.lib ) else() target_include_directories(external_openal SYSTEM