Skip to content

Commit

Permalink
Set C++17 standard
Browse files Browse the repository at this point in the history
  • Loading branch information
anilbey committed Oct 17, 2023
1 parent d583e2e commit 4ea4852
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ jobs:
- name: Run tox
run: |
sudo apt update
sudo apt install -y g++-11 gcc-11
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 60 --slave /usr/bin/g++ g++ /usr/bin/g++-11
sudo update-alternatives --config gcc
g++ --version
gcc --version
cmake --version
tox # this does not call docs
coverage:
Expand Down
15 changes: 11 additions & 4 deletions efel/cppcore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,23 @@
# along with this library; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

cmake_minimum_required(VERSION 2.6)
cmake_minimum_required(VERSION 3.12)

# Set Compiler
set(CMAKE_C_COMPILER g++)
set(CMAKE_CXX_COMPILER g++)


# Set C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

set(CMAKE_BUILD_TYPE Debug)

set(FEATURESRCS Utils.cpp LibV1.cpp LibV2.cpp LibV3.cpp LibV5.cpp
FillFptrTable.cpp DependencyTree.cpp efel.cpp cfeature.cpp
mapoperations.cpp)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")

add_library(efelStatic ${FEATURESRCS})
set_target_properties(efelStatic PROPERTIES OUTPUT_NAME efel)
install(TARGETS efelStatic ARCHIVE DESTINATION lib)
Expand Down

0 comments on commit 4ea4852

Please sign in to comment.