From 2c66776b5fb38c3fd71ac997784d450830b355df Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 22 Aug 2019 00:56:22 +0300 Subject: [PATCH] Fix cmake_minimum_required specification (fix of commit e7dd50d19) Otherwise CMake issues a warning about unset CMAKE_LEGACY_CYGWIN_WIN32 on Cygwin. * CMakeLists.txt (cmake_minimum_required): Move the specification to the top of the file. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 703a02d..eba628d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,8 @@ # this will generate gc.sln # +cmake_minimum_required(VERSION 3.1) + option(enable_cplusplus "C++ support" OFF) if (enable_cplusplus) project(gc) @@ -30,8 +32,6 @@ endif() include(CTest) -cmake_minimum_required(VERSION 3.1) - # Customize the build by passing "-D=ON|OFF" in the command line. option(BUILD_SHARED_LIBS "Build shared libraries" ON) option(build_cord "Build cord library" ON) -- 2.7.4