Browse Source

Merge pull request #2462 from assimp/kimkulling-2449

Update CMakeLists.txt
Kim Kulling 6 years ago
parent
commit
d29e245536
1 changed files with 3 additions and 1 deletions
  1. 3 1
      code/CMakeLists.txt

+ 3 - 1
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}