diff options
author | Brad King <brad.king@kitware.com> | 2014-07-31 17:08:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-07-31 18:08:58 (GMT) |
commit | 2074f5813889680d32c784c3dbdb1bf41be1405f (patch) | |
tree | a6de3fc33a0739943001b84327ac4231ea80a252 /Modules/Platform | |
parent | c72f0887cee6c3c47f50efb44256476045cf801f (diff) | |
download | CMake-2074f5813889680d32c784c3dbdb1bf41be1405f.zip CMake-2074f5813889680d32c784c3dbdb1bf41be1405f.tar.gz CMake-2074f5813889680d32c784c3dbdb1bf41be1405f.tar.bz2 |
MSVC: Add system libs for WindowsPhone and WindowsStore
Use the libraries that are added by default by the VS 2013 IDE
for Windows Phone and Windows Store projects.
Diffstat (limited to 'Modules/Platform')
-rw-r--r-- | Modules/Platform/Windows-MSVC.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-MSVC.cmake b/Modules/Platform/Windows-MSVC.cmake index 9431e90..9d4aca2 100644 --- a/Modules/Platform/Windows-MSVC.cmake +++ b/Modules/Platform/Windows-MSVC.cmake @@ -165,7 +165,11 @@ if(WINCE) elseif(WINDOWS_PHONE OR WINDOWS_STORE) set(_FLAGS_C " /DUNICODE /D_UNICODE") set(_FLAGS_CXX " /DUNICODE /D_UNICODE /GR /EHsc") - set(CMAKE_C_STANDARD_LIBRARIES_INIT "") + if(WINDOWS_PHONE) + set(CMAKE_C_STANDARD_LIBRARIES_INIT "WindowsPhoneCore.lib RuntimeObject.lib PhoneAppModelHost.lib") + else() + set(CMAKE_C_STANDARD_LIBRARIES_INIT "kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib") + endif() else() set(_PLATFORM_DEFINES "/DWIN32") |