1

I'm trying to generate solution and project files for a static library in universal windows platform using cmake. I gave parameters as specified in the other thread here

But it generated project files with incorrect configs (TargetPlatformVersion = 8.1 and WindowsStoreAppSupport=No). Instead the values should be like TargetPlatformVersion = 10.0.10586.0 or 10.0.10240.0 and WindowsStoreAppSupport = Yes.

I have given parameters as CMAKE_SYSTEM_NAME = WindowsStore and CMAKE_SYSTEM_VERSION = 10.0 and selected the generator to "Visual Studio 14 2015".

Is Universal Windows Platform supported by CMake? If yes, then how do I generate the project files supporting UWP?

Community
  • 1
  • 1
SalmanKhan
  • 103
  • 1
  • 11
  • 1
    Are you using the latest CMake 3.4 version? The newer the version, the higher the changes CMake supports such new developments. – usr1234567 Dec 02 '15 at 10:45
  • I'm using cmake 3.3.1. Let me try cmake 3.4 and come back. – SalmanKhan Dec 03 '15 at 06:08
  • It worked out with CMake 3.4 version. Thanks! I would recommend to upgrade your comment as an answer to the question. – SalmanKhan Jan 27 '16 at 11:09
  • Official documentation: [Cross Compiling for Windows 10 Universal Applications](https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html#cross-compiling-for-windows-10-universal-applications) – Valentin Safonnikov Feb 11 '19 at 13:49

1 Answers1

3

Recent versions of CMake support the newer version of Visual Studio and Windows 10 SDK. If you get weird errors, try updating to the lasted CMake version.

usr1234567
  • 21,601
  • 16
  • 108
  • 128