diff options
author | Brad King <brad.king@kitware.com> | 2022-02-01 15:25:45 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-02-01 15:25:50 (GMT) |
commit | 4aedf84da3a7d4371cfafe5454c0c18cf5228e0e (patch) | |
tree | 29efb53f81e639b2cd4f8f214528e0fb58353290 /.gitlab | |
parent | b96f1fb572b0fc6e2f454a435da381e6c2838b04 (diff) | |
parent | 45feab3c001766ac42115eeb0956b6ad170843f7 (diff) | |
download | CMake-4aedf84da3a7d4371cfafe5454c0c18cf5228e0e.zip CMake-4aedf84da3a7d4371cfafe5454c0c18cf5228e0e.tar.gz CMake-4aedf84da3a7d4371cfafe5454c0c18cf5228e0e.tar.bz2 |
Merge topic 'ci-assertions'
45feab3c00 gitlab-ci: enable assertions on fedora34-ninja jobs
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6927
Diffstat (limited to '.gitlab')
-rw-r--r-- | .gitlab/ci/configure_fedora34_ninja.cmake | 4 | ||||
-rw-r--r-- | .gitlab/os-linux.yml | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/.gitlab/ci/configure_fedora34_ninja.cmake b/.gitlab/ci/configure_fedora34_ninja.cmake index 37bc189..629f792 100644 --- a/.gitlab/ci/configure_fedora34_ninja.cmake +++ b/.gitlab/ci/configure_fedora34_ninja.cmake @@ -1,6 +1,10 @@ set(CMake_TEST_ISPC "ON" CACHE STRING "") set(CMake_TEST_GUI "ON" CACHE BOOL "") +# "Release" flags without "-DNDEBUG" so we get assertions. +set(CMAKE_C_FLAGS_RELEASE "-O3" CACHE STRING "") +set(CMAKE_CXX_FLAGS_RELEASE "-O3" CACHE STRING "") + # Cover compilation with C++11 only and not higher standards. set(CMAKE_CXX_STANDARD "11" CACHE STRING "") diff --git a/.gitlab/os-linux.yml b/.gitlab/os-linux.yml index c831530..90c10a2 100644 --- a/.gitlab/os-linux.yml +++ b/.gitlab/os-linux.yml @@ -131,6 +131,7 @@ variables: CMAKE_CONFIGURATION: fedora34_ninja + CMAKE_CI_BUILD_TYPE: Release CTEST_NO_WARNINGS_ALLOWED: 1 .fedora34_ninja_multi: |