From: Ivan Maidanski Date: Wed, 21 Aug 2019 21:56:22 +0000 (+0300) Subject: Fix cmake_minimum_required specification X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c66776b5fb38c3fd71ac997784d450830b355df;p=gc 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. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 703a02d3..eba628d8 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)