Skip to content

Commit

Permalink
Revert "feat: C++ 17 compatibility"
Browse files Browse the repository at this point in the history
This reverts commit 6c2a269.
  • Loading branch information
vishwa2710 committed Aug 21, 2024
1 parent 6c2a269 commit f48b7b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 52 deletions.
40 changes: 2 additions & 38 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ OPTION (BUILD_PYTHON_BINDINGS "Build Python bindings." ON)
OPTION (BUILD_CODE_COVERAGE "Build code coverage" OFF)
OPTION (BUILD_DOCUMENTATION "Build documentation" OFF)
OPTION (BUILD_WITH_DEBUG_SYMBOLS "Build with debug symbols" ON)
OPTION (BUILD_WITH_CXX_17 "Build with C++ 17 support." OFF)

## Setup

Expand Down Expand Up @@ -127,44 +126,9 @@ IF (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")

ENDIF ()

### C++ 17/20 support

IF (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")

IF (BUILD_WITH_CXX_17)

SET (CMAKE_CXX_STANDARD 17)

MESSAGE (STATUS "C++17 support enabled")

IF (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)

MESSAGE (FATAL_ERROR "GCC version must be at least 7.0")

ENDIF ()

ELSE ()

MESSAGE (STATUS "C++20 support enabled")

SET (CMAKE_CXX_STANDARD 20)

IF (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 13.0)

MESSAGE (FATAL_ERROR "GCC version must be at least 13.0")

ENDIF ()

ENDIF ()

SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Wshadow -Wno-deprecated")

ELSE ()

SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Wshadow")

ENDIF ()
### C++ 20 support

SET (CMAKE_CXX_STANDARD 20)
SET (CMAKE_CXX_STANDARD_REQUIRED ON)
SET (CMAKE_CXX_EXTENSIONS OFF)

Expand Down
14 changes: 0 additions & 14 deletions docker/development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,6 @@ RUN apt-get update \
&& apt-get install -y jq \
&& rm -rf /var/lib/apt/lists/*

## fmt

ARG FMT_VERSION="5.2.0"

RUN cd /tmp \
&& git clone --branch ${FMT_VERSION} --depth 1 https://github.com/fmtlib/fmt.git \
&& cd fmt \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE .. \
&& make --silent -j $(nproc) \
&& make install \
&& rm -rf /tmp/fmt

## libcurl

RUN apt-get update -y \
Expand Down

0 comments on commit f48b7b9

Please sign in to comment.