Skip to content

Commit

Permalink
Build update (#11)
Browse files Browse the repository at this point in the history
* update cmake macros

* remove appveyor

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* remove unused files

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
phlptp and pre-commit-ci[bot] authored May 12, 2023
1 parent df3d8ee commit 3a06173
Show file tree
Hide file tree
Showing 44 changed files with 447 additions and 619 deletions.
19 changes: 0 additions & 19 deletions .appveyor.yml

This file was deleted.

106 changes: 0 additions & 106 deletions .ci/build_docs.sh

This file was deleted.

24 changes: 0 additions & 24 deletions .ci/build_doxygen.sh

This file was deleted.

17 changes: 0 additions & 17 deletions .ci/build_lcov.sh

This file was deleted.

21 changes: 0 additions & 21 deletions .ci/check_tidy.sh

This file was deleted.

16 changes: 0 additions & 16 deletions .ci/tsan-cache.cmake

This file was deleted.

18 changes: 10 additions & 8 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
AccessModifierOffset: "-2"
AlignAfterOpenBracket: AlwaysBreak
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: "false"
AlignConsecutiveDeclarations: "false"
#AlignConsecutiveMacros: 'true'
Expand Down Expand Up @@ -28,7 +28,7 @@ BraceWrapping:
BeforeCatch: true
BreakBeforeTernaryOperators: "false"
BreakConstructorInitializers: AfterColon
#BreakInheritanceList: AfterColon
BreakInheritanceList: AfterColon
BreakStringLiterals: "false"
ColumnLimit: 80
CompactNamespaces: "false"
Expand All @@ -39,8 +39,9 @@ Cpp11BracedListStyle: "true"
DerivePointerAlignment: "false"
DisableFormat: "false"
FixNamespaceComments: "true"
#IncludeBlocks: Regroup
IncludeBlocks: Regroup
IndentCaseLabels: "true"
IndentPPDirectives: AfterHash
IndentWidth: "4"
IndentWrappedFunctionNames: "true"
JavaScriptQuotes: Double
Expand All @@ -50,8 +51,8 @@ MaxEmptyLinesToKeep: "1"
NamespaceIndentation: Inner
ObjCSpaceAfterProperty: "true"
ObjCSpaceBeforeProtocolList: "true"
PenaltyBreakBeforeFirstCallParameter: "90"
PenaltyBreakComment: "100"
PenaltyBreakBeforeFirstCallParameter: "120"
PenaltyBreakComment: "300"
PenaltyBreakFirstLessLess: "30"
PenaltyBreakString: "1000"
PenaltyExcessCharacter: "1000000"
Expand All @@ -64,10 +65,11 @@ SpaceAfterCStyleCast: "false"
#SpaceAfterLogicalNot: 'false'
SpaceAfterTemplateKeyword: "false"
SpaceBeforeAssignmentOperators: "true"
#SpaceBeforeCpp11BracedList: 'false'
#SpaceBeforeCtorInitializerColon: 'false'
SpaceBeforeCpp11BracedList: "false"
SpaceBeforeCtorInitializerColon: "false"
SpaceBeforeInheritanceColon: "false"
SpaceBeforeParens: ControlStatements
#SpaceBeforeRangeBasedForLoopColon: 'true'
SpaceBeforeRangeBasedForLoopColon: "true"
SpaceInEmptyParentheses: "false"
SpacesBeforeTrailingComments: "2"
SpacesInAngles: "false"
Expand Down
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ repos:
- id: check-symlinks
- id: check-yaml
- id: end-of-file-fixer
- id: check-shebang-scripts-are-executable
- id: check-executables-have-shebangs
- id: debug-statements
- id: detect-private-key
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v16.0.3
hooks:
Expand Down
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
# SPDX-License-Identifier: BSD-3-Clause
# ~~~

cmake_minimum_required(VERSION 3.11...3.24)
cmake_minimum_required(VERSION 3.11...3.25)

project(GMLC_CONCURRENCY VERSION 0.3.0)
project(GMLC_CONCURRENCY VERSION 0.4.0)

# -----------------------------------------------------------------------------
# GMLC CONCURRENCY library Version number
# -----------------------------------------------------------------------------
set(GMLC_CONCURRENCY_VERSION_BUILD)
set(GMLC_CONCURRENCY_DATE "2023-09-24")
set(GMLC_CONCURRENCY_DATE "2023-05-11")

set(GMLC_CONCURRENCY_VERSION_STRING
"${GMLC_CONCURRENCY_VERSION} (${GMLC_CONCURRENCY_DATE})"
Expand Down
62 changes: 15 additions & 47 deletions config/cmake/AddGooglebenchmark.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Copyright (c) 2017-2022, Battelle Memorial Institute; Lawrence Livermore
# Copyright (c) 2017-2023, Battelle Memorial Institute; Lawrence Livermore
# National Security, LLC; Alliance for Sustainable Energy, LLC.
# See the top-level NOTICE for additional details.
# All rights reserved.
Expand All @@ -15,8 +15,7 @@ if(NOT CMAKE_VERSION VERSION_LESS 3.11)
include(FetchContent)

fetchcontent_declare(
gbenchmark
GIT_REPOSITORY https://github.com/google/benchmark.git
gbenchmark GIT_REPOSITORY https://github.com/google/benchmark.git
GIT_TAG ${gbenchmark_version}
)

Expand Down Expand Up @@ -52,40 +51,15 @@ else() # cmake <3.11

endif()

set(BENCHMARK_ENABLE_GTEST_TESTS
OFF
CACHE INTERNAL ""
)
set(BENCHMARK_ENABLE_TESTING
OFF
CACHE INTERNAL "Suppressing benchmark's tests"
)
set(BENCHMARK_ENABLE_INSTALL
OFF
CACHE INTERNAL ""
)
set(BENCHMARK_DOWNLOAD_DEPENDENCIES
ON
CACHE INTERNAL ""
)
set(BENCHMARK_ENABLE_ASSEMBLY_TESTS
OFF
CACHE INTERNAL ""
)
# tell google benchmarks to use std regex since we only compile on compilers with std
# regex
set(HAVE_STD_REGEX
ON
CACHE INTERNAL ""
)
set(HAVE_POSIX_REGEX
OFF
CACHE INTERNAL ""
)
set(HAVE_GNU_POSIX_REGEX
OFF
CACHE INTERNAL ""
)
set(BENCHMARK_ENABLE_GTEST_TESTS OFF CACHE INTERNAL "")
set(BENCHMARK_ENABLE_TESTING OFF CACHE INTERNAL "Suppressing benchmark's tests")
set(BENCHMARK_ENABLE_INSTALL OFF CACHE INTERNAL "")
set(BENCHMARK_DOWNLOAD_DEPENDENCIES ON CACHE INTERNAL "")
set(BENCHMARK_ENABLE_ASSEMBLY_TESTS OFF CACHE INTERNAL "")
# tell google benchmarks to use std regex since we only compile on compilers with std regex
set(HAVE_STD_REGEX ON CACHE INTERNAL "")
set(HAVE_POSIX_REGEX OFF CACHE INTERNAL "")
set(HAVE_GNU_POSIX_REGEX OFF CACHE INTERNAL "")
add_subdirectory(${${gbName}_SOURCE_DIR} ${${gbName}_BINARY_DIR} EXCLUDE_FROM_ALL)

# Target must already exist
Expand Down Expand Up @@ -116,16 +90,10 @@ hide_variable(BENCHMARK_USE_LIBCXX)
hide_variable(LIBRT)

set_target_properties(benchmark benchmark_main PROPERTIES FOLDER "Extern")
target_compile_options(
benchmark_main PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/wd4244 /wd4800>
)
target_compile_options(benchmark_main PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/wd4244 /wd4800>)
target_compile_options(benchmark PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/wd4244 /wd4800>)

if(MSVC AND MSVC_VERSION GREATER_EQUAL 1900)
target_compile_definitions(
benchmark PUBLIC _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING
)
target_compile_definitions(
benchmark_main PUBLIC _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING
)
if(MSVC)
target_compile_definitions(benchmark PUBLIC _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING)
target_compile_definitions(benchmark_main PUBLIC _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING)
endif()
Loading

0 comments on commit 3a06173

Please sign in to comment.