Skip to content

Commit

Permalink
check software version
Browse files Browse the repository at this point in the history
  • Loading branch information
takenori-y committed Dec 13, 2021
1 parent fc44744 commit ecfe87e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
16 changes: 12 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,21 @@
# limitations under the License. #
# ------------------------------------------------------------------------ #

cmake_minimum_required(VERSION 3.3)
cmake_minimum_required(VERSION 3.1)

project(SPTK)

if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.8)
message(FATAL_ERROR "require gcc >= 4.8")
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.5)
message(FATAL_ERROR "require clang >= 3.5")
endif()
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.8.5)
message(FATAL_ERROR "require gcc >= 4.8.5")
endif()
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19.0)
message(FATAL_ERROR "require msvc >= Visual Studio 2015")
endif()
endif()

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ See [this page](https://sp-nitech.github.io/sptk/4.0/) for a reference manual.

Requirements
------------
- GCC 4.8+
- CMake 3.3+
- GCC 4.8.5+ / Clang 3.5+ / Visual Studio 2015+
- CMake 3.1+


Installation
Expand Down

0 comments on commit ecfe87e

Please sign in to comment.