diff options
author | Christian Fetzer <fetzer.ch@gmail.com> | 2016-09-25 00:06:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-25 00:06:22 +0200 |
commit | cbe09d121b9bfb645e1ae3e13da291361099016d (patch) | |
tree | 2d838691077cee90443c24a4d218ade6a1369bfe /project/cmake/scripts/common/GeneratorSetup.cmake | |
parent | 755478723a306a0a5735e303aa2699a74429202c (diff) | |
parent | 5e07753226ebe8d58241ac3a7bd68b2a1d858db9 (diff) |
Merge pull request #10396 from fetzerch/cmake_win_3.6
[cmake/win32] Bump minimum CMake version to 3.6
Diffstat (limited to 'project/cmake/scripts/common/GeneratorSetup.cmake')
-rw-r--r-- | project/cmake/scripts/common/GeneratorSetup.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/project/cmake/scripts/common/GeneratorSetup.cmake b/project/cmake/scripts/common/GeneratorSetup.cmake index 47b43deae3..304b5042e7 100644 --- a/project/cmake/scripts/common/GeneratorSetup.cmake +++ b/project/cmake/scripts/common/GeneratorSetup.cmake @@ -38,6 +38,11 @@ if(APPLE AND CMAKE_VERSION VERSION_LESS 3.4) "or the usage of the patched version in depends.") endif() +# Windows needs CMake 3.6 (VS_STARTUP_PROJECT) +if(WIN32 AND CMAKE_VERSION VERSION_LESS 3.6) + message(FATAL_ERROR "Build on Windows needs CMake 3.6 or later") +endif() + # Ninja needs CMake 3.2 due to ExternalProject BUILD_BYPRODUCTS usage if(CMAKE_GENERATOR STREQUAL Ninja AND CMAKE_VERSION VERSION_LESS 3.2) message(FATAL_ERROR "Generator: Ninja requires CMake 3.2 or later") |