Skip to content

Commit

Permalink
Increase the cmake_minimum_required version to 3.1.
Browse files Browse the repository at this point in the history
File `src/CMakeLists.txt` sets the `CXX_STANDARD` property to specify
the C++ language standard for `csmith`.  That property was added in
CMake 3.1.0.  (CMake 3.1.0 was released in December 2014.)
  • Loading branch information
eeide committed Sep 15, 2019
1 parent 52ed397 commit 900729a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
@@ -1,6 +1,6 @@
## -*- mode: CMake -*-
##
## Copyright (c) 2017 The University of Utah
## Copyright (c) 2017, 2019 The University of Utah
## All rights reserved.
##
## This file is part of `csmith', a random generator of C programs.
Expand Down Expand Up @@ -29,7 +29,7 @@

###############################################################################

cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.1)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")

Expand Down
4 changes: 2 additions & 2 deletions doc/CMakeLists.txt
@@ -1,6 +1,6 @@
## -*- mode: CMake -*-
##
## Copyright (c) 2017 The University of Utah
## Copyright (c) 2017, 2019 The University of Utah
## All rights reserved.
##
## This file is part of `csmith', a random generator of C programs.
Expand Down Expand Up @@ -29,7 +29,7 @@

###############################################################################

cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.1)
project(csmith_doc)

set(DOC_DIR "${CMAKE_INSTALL_PREFIX}/share/doc/csmith")
Expand Down
4 changes: 2 additions & 2 deletions runtime/CMakeLists.txt
@@ -1,6 +1,6 @@
## -*- mode: CMake -*-
##
## Copyright (c) 2017 The University of Utah
## Copyright (c) 2017, 2019 The University of Utah
## All rights reserved.
##
## This file is part of `csmith', a random generator of C programs.
Expand Down Expand Up @@ -29,7 +29,7 @@

###############################################################################

cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.1)
project(csmith_runtime)

# CMP0042 was introduced in CMake 3.0. Don't error in older CMakes.
Expand Down
4 changes: 2 additions & 2 deletions scripts/CMakeLists.txt
@@ -1,6 +1,6 @@
## -*- mode: CMake -*-
##
## Copyright (c) 2017 The University of Utah
## Copyright (c) 2017, 2019 The University of Utah
## All rights reserved.
##
## This file is part of `csmith', a random generator of C programs.
Expand Down Expand Up @@ -29,7 +29,7 @@

###############################################################################

cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.1)
project(csmith_scripts)

set(BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin")
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Expand Up @@ -29,7 +29,7 @@

###############################################################################

cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.1)
project(csmith_src)

set(BIN_DIR "${CMAKE_INSTALL_PREFIX}/bin")
Expand Down

0 comments on commit 900729a

Please sign in to comment.