From 287285dc9d7cc232191c7bce81c0baebe25c3126 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Wed, 3 Jun 2020 15:58:55 +0200 Subject: [PATCH] Simplify Windows Store link --- src/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5a8a575..8905156 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -74,8 +74,7 @@ if(ENABLE_SHARED) set_target_properties(bcg729 PROPERTIES PREFIX "lib") if( ENABLE_MICROSOFT_STORE_APP ) message(STATUS "Build bcg729 for Microsoft store") - set_target_properties(bcg729 PROPERTIES LINK_DIRECTORIES "\$(WindowsSDK_LibraryPath_x86);\$(NETFXKitsDir)Lib\\um\\x86;\$(VC_LibraryPath_VC_x86_store);\$(VC_ReferencesPath_ATL_x86);\$(VC_LibraryPath_VC_x86);\$(VC_LibraryPath_x86);C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\VS\\UnitTest\\lib;\$(LibraryPath)") - target_link_libraries(bcg729 PRIVATE "WindowsApp.lib") + set_target_properties(bcg729 PROPERTIES LINK_DIRECTORIES "${MICROSOFT_STORE_LINK_PATHS}") else() message(STATUS "Build bcg729 for Desktop") endif()