Skip to content

Commit

Permalink
Make it possible to build with c++20 and switch to new Key4hep build …
Browse files Browse the repository at this point in the history
…action (#114)

* Make it possible to build with c++20

* Run new key4hep workflows on PR commits

* Remove old key4hep workflow
  • Loading branch information
tmadlener authored Feb 5, 2024
1 parent 2a59e2a commit ff0bbc8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 44 deletions.
1 change: 1 addition & 0 deletions .github/workflows/key4hep-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Key4hep build
on:
push:
workflow_dispatch:
pull_request:

jobs:
build:
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/test.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE CACHE BOOL "RPATH USE LINK PATH")

#--- Declare C++ Standard -----------------------------------------------------
set(CMAKE_CXX_STANDARD 17 CACHE STRING "")
if(NOT CMAKE_CXX_STANDARD MATCHES "17")
if(NOT CMAKE_CXX_STANDARD MATCHES "17|20")
message(FATAL_ERROR "Unsupported C++ standard: ${CMAKE_CXX_STANDARD}")
endif()
message (STATUS "C++ standard: ${CMAKE_CXX_STANDARD}")
Expand Down

0 comments on commit ff0bbc8

Please sign in to comment.