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 da0e37e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ jobs:
- name: Run tox
run: |
sudo apt update
sudo apt install g++-11 gcc-11 -y
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 da0e37e

Please sign in to comment.