Skip to content

Commit

Permalink
Bump CMake version to 3.10 to have the cxx_std_14 compile feature.
Browse files Browse the repository at this point in the history
Avoid the Actions to be run every day.
  • Loading branch information
S-Dafarra committed Oct 6, 2020
1 parent 3573051 commit c5e43bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ name: C++ CI Workflow
on:
push:
pull_request:
schedule:
# * is a special character in YAML so you have to quote this string
# Execute a "nightly" build at 2 AM UTC
- cron: '0 2 * * *'

env:
# commit from vcpkg's master branch on 2020/10/06
Expand Down
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This software may be modified and distributed under the terms of the
# GNU Lesser General Public License v2.1 or any later version.

cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)
project(matioCpp VERSION 1.0 LANGUAGES CXX)

# Defines the CMAKE_INSTALL_LIBDIR, CMAKE_INSTALL_BINDIR and many other useful macros.
Expand Down Expand Up @@ -58,8 +58,6 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
# extensions off.
set(CMAKE_C_EXTENSIONS OFF)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

Expand Down Expand Up @@ -123,7 +121,7 @@ target_include_directories(matioCpp PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SO

target_link_libraries(matioCpp PUBLIC MATIO::MATIO)

target_compile_features(matioCpp PUBLIC cxx_constexpr)
target_compile_features(matioCpp PUBLIC cxx_std_14)

set_target_properties(matioCpp PROPERTIES
OUTPUT_NAME matioCpp
Expand Down

0 comments on commit c5e43bd

Please sign in to comment.