diff --git a/.travis.yml b/.travis.yml index e7c3419d4..a556c1e25 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,12 +30,12 @@ matrix: - cmake3-data - clang - clang-format-3.9 - - gfortran-4.6 + - gfortran - libboost-math-dev env: - CXX_COMPILER='clang++' - C_COMPILER='clang' - - Fortran_COMPILER='gfortran-4.6' + - Fortran_COMPILER='gfortran' - BUILD_TYPE='release' - PYTHON='--three' - RUN_DANGER=true @@ -45,14 +45,14 @@ matrix: packages: - cmake3 - cmake3-data - - g++-4.6 - - gcc-4.6 - - gfortran-4.6 + - g++ + - gcc + - gfortran - libboost-math-dev env: - - CXX_COMPILER='g++-4.6' - - C_COMPILER='gcc-4.6' - - Fortran_COMPILER='gfortran-4.6' + - CXX_COMPILER='g++' + - C_COMPILER='gcc' + - Fortran_COMPILER='gfortran' - BUILD_TYPE='release' - PYTHON='--two' - RUN_DANGER=false @@ -82,15 +82,15 @@ matrix: packages: - cmake3 - cmake3-data - - g++-4.8 - - gcc-4.8 - - gfortran-4.8 + - g++ + - gcc + - gfortran - libboost-math-dev - lcov env: - - CXX_COMPILER='g++-4.8' - - C_COMPILER='gcc-4.8' - - Fortran_COMPILER='gfortran-4.8' + - CXX_COMPILER='g++' + - C_COMPILER='gcc' + - Fortran_COMPILER='gfortran' - BUILD_TYPE='debug' - PYTHON='--two' - COVERAGE='--coverage' diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f3b785df..56fbaed52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,12 @@ Messina (J. Chem. Phys. 2002, 117 (24), 11062) and Delgado _et al._ (J. Chem. Phys. 2013, 139 (2), 024105) +### Deprecated + +- C++03 support is effectively **deprecated** in favor of C++11. Support for GCC + 4.6 and earlier has been dropped. Please consider upgrading your C++ compiler + to a [fully standard-compliant one](https://en.cppreference.com/w/cpp/compiler_support#cpp11) + ### Changed - The versioning machinery has been updated. The update was inspired by the @@ -31,6 +37,7 @@ - The `ENABLE_Fortran_API` configuration option has been renamed `TEST_Fortran_API`, since it now only triggers compilation of the `Fortran_host` test case. +- **BREAKING CHANGE** The minimum required version of CMake is now 3.3 ### Fixed diff --git a/CMakeLists.txt b/CMakeLists.txt index e26a08ee8..037589193 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,10 +2,10 @@ # Copyright (c) 2015-2018 by Radovan Bast, Roberto Di Remigio, Jonas Juselius, and contributors. # set minimum cmake version -cmake_minimum_required(VERSION 2.8.10 FATAL_ERROR) +cmake_minimum_required(VERSION 3.3 FATAL_ERROR) # project name -project(PCMSolver CXX C Fortran) +project(PCMSolver LANGUAGES CXX C Fortran) # do not rebuild if rules (compiler flags) change set(CMAKE_SKIP_RULE_DEPENDENCY TRUE) @@ -15,10 +15,44 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Debug") endif() +# Options handling utilities +include(CMakeDependentOption) +# Macro for printing an option in a consistent manner +# Written by Lori A. Burns (@loriab) and Ryan M. Richard (@ryanmrichard) +# Syntax: print_option(