MSVC: Add system libs for WindowsStore on VS 2015
Use WindowsApp.lib for a Universal Application Platform project.
This commit is contained in:
parent
d1b87d72f9
commit
8c426183d1
|
@ -179,7 +179,9 @@ elseif(WINDOWS_PHONE OR WINDOWS_STORE)
|
|||
set(_PLATFORM_DEFINES "/DWIN32")
|
||||
set(_FLAGS_C " /DUNICODE /D_UNICODE")
|
||||
set(_FLAGS_CXX " /DUNICODE /D_UNICODE /GR /EHsc")
|
||||
if(WINDOWS_PHONE)
|
||||
if(WINDOWS_STORE AND MSVC_VERSION GREATER 1899)
|
||||
set(CMAKE_C_STANDARD_LIBRARIES_INIT "WindowsApp.lib")
|
||||
elseif(WINDOWS_PHONE)
|
||||
set(CMAKE_C_STANDARD_LIBRARIES_INIT "WindowsPhoneCore.lib RuntimeObject.lib PhoneAppModelHost.lib")
|
||||
elseif(_MSVC_C_ARCHITECTURE_FAMILY STREQUAL "ARM" OR _MSVC_CXX_ARCHITECTURE_FAMILY STREQUAL "ARM")
|
||||
set(CMAKE_C_STANDARD_LIBRARIES_INIT "kernel32.lib user32.lib")
|
||||
|
|
Loading…
Reference in New Issue