diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0bb76517..2dd2a932 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,6 +28,7 @@ jobs: - name: Run tox run: | gcc --version + cmake --version tox # this does not call docs coverage: diff --git a/efel/cppcore/CMakeLists.txt b/efel/cppcore/CMakeLists.txt index 3803c306..76ab05bb 100644 --- a/efel/cppcore/CMakeLists.txt +++ b/efel/cppcore/CMakeLists.txt @@ -15,7 +15,17 @@ # 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 gcc) +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) @@ -23,7 +33,8 @@ 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") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -std=c++17") + add_library(efelStatic ${FEATURESRCS}) set_target_properties(efelStatic PROPERTIES OUTPUT_NAME efel)