From 815730c92d432a9535afa526929435b6901649db Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Mon, 13 May 2019 21:49:50 +0200 Subject: [PATCH] Update CMakeLists.txt closes https://github.com/assimp/assimp/issues/2449: fix uwp handling --- code/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index 5a7838515..455549c6a 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -1077,7 +1077,9 @@ if( MSVC ) endif() if (${CMAKE_SYSTEM_NAME} MATCHES "WindowsStore") - set(WindowsStore TRUE) + target_compile_definitions(assimp PUBLIC WindowsStore) + TARGET_LINK_LIBRARIES(assimp advapi32) + #set(WindowsStore TRUE) endif() SET_TARGET_PROPERTIES( assimp PROPERTIES VERSION ${ASSIMP_VERSION}