Skip to content

Commit

Permalink
Merge pull request #277 from aminya/reomve-c++-23
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya authored Sep 11, 2024
2 parents a32b008 + 7b663ef commit fe5a166
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 32 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,15 @@ jobs:
- windows-2022
- ubuntu-22.04
- macos-13
- macos-14
# - macos-14
compiler:
- llvm
- gcc
cmake:
- true
vcvarsall:
- true
include:
- os: "windows-2022"
compiler: "msvc"
cmake: true
vcvarsall: true
- os: "windows-2022"
compiler: "msvc"
Expand All @@ -55,7 +52,7 @@ jobs:
${{ env.XDG_CACHE_HOME }}/vcpkg/archives
${{ env.LOCALAPPDATA }}\vcpkg\archives
${{ env.APPDATA }}\vcpkg\archives
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ env.BUILD_TYPE }}-${{ hashFiles('**/CMakeLists.txt', './vcpkg.json')}}-${{ matrix.cmake }}
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ env.BUILD_TYPE }}-${{ hashFiles('**/CMakeLists.txt', './vcpkg.json')}}
restore-keys: |
${{ runner.os }}-${{ env.BUILD_TYPE }}-
Expand All @@ -64,7 +61,7 @@ jobs:
with:
compiler: ${{ matrix.compiler }}
vcvarsall: ${{ contains(matrix.os, 'windows') && matrix.vcvarsall }}
cmake: ${{ matrix.cmake }}
cmake: true
ninja: true
vcpkg: true
conan: 2.6.0
Expand All @@ -83,6 +80,5 @@ jobs:

- name: Lint
run: |
pipx install cmakelint
pipx install --include-deps cmake-format
pipx install cmakelang[YAML]
task lint
4 changes: 2 additions & 2 deletions src/Standards.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ macro(set_standards)
_set_language_standard(
CXX_LATEST_STANDARD
CXX
23
# 23
20
17
14
Expand All @@ -39,7 +39,7 @@ macro(set_standards)
_set_language_standard(
C_LATEST_STANDARD
C
23
# 23
20
17
11
Expand Down
11 changes: 0 additions & 11 deletions tests/install/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,6 @@ if(FEATURE_TESTS)
)
endif()

set(ENABLE_INTERPROCEDURAL_OPTIMIZATION "ENABLE_INTERPROCEDURAL_OPTIMIZATION")
if(APPLE)
detect_macos_version(apple_version)
if(apple_version VERSION_GREATER_EQUAL 13)
# workaround for linkage error as described in https://github.com/Homebrew/homebrew-core/issues/145991
# although fixed, this problem still exists in github actions
add_link_options(-Wl,-ld_classic)
set(ENABLE_INTERPROCEDURAL_OPTIMIZATION "")
endif()
endif()

# Initialize project_options
project_options(
ENABLE_CACHE
Expand Down
11 changes: 0 additions & 11 deletions tests/myproj/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,6 @@ if(NOT MSVC)
#message(STATUS "Detect Linker: ${LINKER}")
endif()

set(ENABLE_INTERPROCEDURAL_OPTIMIZATION "ENABLE_INTERPROCEDURAL_OPTIMIZATION")
if(APPLE)
detect_macos_version(apple_version)
if(apple_version VERSION_GREATER_EQUAL 13)
# workaround for linkage error as described in https://github.com/Homebrew/homebrew-core/issues/145991
# although fixed, this problem still exists in github actions
add_link_options(-Wl,-ld_classic)
set(ENABLE_INTERPROCEDURAL_OPTIMIZATION "")
endif()
endif()

# Initialize project_options
# uncomment the options to enable them
project_options(
Expand Down

0 comments on commit fe5a166

Please sign in to comment.