]> granicus.if.org Git - gc/commitdiff
Fix cmake_minimum_required specification
authorIvan Maidanski <ivmai@mail.ru>
Wed, 21 Aug 2019 21:56:22 +0000 (00:56 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 21 Aug 2019 21:56:49 +0000 (00:56 +0300)
(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

index 703a02d3990f97225a79660c7a003e49c99949ae..eba628d889171f681209d3afddb9755fe878d89f 100644 (file)
@@ -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<option_name>=ON|OFF" in the command line.
 option(BUILD_SHARED_LIBS "Build shared libraries" ON)
 option(build_cord "Build cord library" ON)