Skip to content

Commit

Permalink
⬆️ Require C++17 and CMake 3.15
Browse files Browse the repository at this point in the history
  • Loading branch information
heavywatal committed Jan 28, 2024
1 parent 45e1b6b commit a9690a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.13)
cmake_minimum_required(VERSION 3.15)
project(tumopp
VERSION 0.8.5
LANGUAGES CXX)
Expand Down Expand Up @@ -46,7 +46,7 @@ add_library(${PROJECT_NAME})
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
add_subdirectory(src)

target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_14)
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_17)
set_target_properties(${PROJECT_NAME} PROPERTIES
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
Expand Down
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ It can be installed and run via [R package](https://github.com/heavywatal/rtumop
## Requirements

- Unix-like environment (macOS, Linux, WSL, MinGW on MSYS2, etc.)
- C++14 compiler (clang++ >= Apple LLVM 8.1, g++ >= 5.3)
- [CMake](https://cmake.org/) (>= 3.13.0)
- C++17 compiler (clang++ >= Apple LLVM 12, g++ >= 8)
- [CMake](https://cmake.org/) (>= 3.15.0)

The following libraries are optional or automatically installed:

Expand All @@ -38,12 +38,10 @@ You can manually install the latest version from source code to an arbitrary `DE
```sh
git clone https://github.com/heavywatal/tumopp.git
cd tumopp/
mkdir build
cd build/
DESTINATION=${HOME}/local
cmake -DCMAKE_INSTALL_PREFIX=$DESTINATION ..
make -j2
make install
cmake -S . -B build -DCMAKE_INSTALL_PREFIX=$DESTINATION
cmake --build build -j 2
cmake --install build -j 2
PATH=${DESTINATION}/bin:$PATH
```

Expand Down

0 comments on commit a9690a6

Please sign in to comment.