Skip to content

Commit

Permalink
test c++ standarts
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgiving committed Aug 13, 2022
1 parent 331c37a commit 071232c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/workflow.yaml
Expand Up @@ -10,6 +10,7 @@ jobs:
Basic_Workflow:
strategy:
matrix:
version: [11, 14, 17, 20]
os: [
ubuntu-18.04,
ubuntu-20.04,
Expand All @@ -22,8 +23,9 @@ jobs:

- name: Build Stage
run: |
echo ${{ matrix.os }}
mkdir build && cd build
cmake -DENABLE_ADE_TESTING=ON -DCMAKE_BUILD_TYPE=Release ..
cmake -DENABLE_ADE_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=${{ matrix.version }} ..
make -j
- name: ADE-Test Stage
Expand Down
5 changes: 4 additions & 1 deletion CMakeLists.txt
Expand Up @@ -17,6 +17,9 @@ option(BUILD_ADE_TUTORIAL "Build tutorial samples" OFF)
option(FORCE_ADE_ASSERTS "Always enable ADE_ASSERT" OFF)
option(BUILD_ADE_DOCUMENTATION "Build doxygen documentation" OFF)

set(ADE_CXX_STANDARD 11 CACHE STRING "C++ standard")
set(CMAKE_CXX_STANDARD ${ADE_CXX_STANDARD})

# TODO: this is horrible hack, we must follow cmake
# build/install policy
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
Expand Down Expand Up @@ -44,7 +47,7 @@ function(add_security_flags target)
endif()
endfunction()

set(CMAKE_CXX_STANDARD 11)
# set(CMAKE_CXX_STANDARD 11)

if (MSVC)
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
Expand Down

0 comments on commit 071232c

Please sign in to comment.