get rid of some unneeded CMake cruft

This commit is contained in:
Zachary D. Rowitsch 2020-09-30 00:42:23 -04:00
parent dca9f254a5
commit 95d41529a9
2 changed files with 5 additions and 12 deletions
.github/workflows
CMakeLists.txt

@ -2,9 +2,9 @@ name: CI
on: [push]
#env:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
# BUILD_TYPE: Release
BUILD_TYPE: Debug
jobs:
build:
@ -49,11 +49,11 @@ jobs:
shell: bash
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: make ExperimentalTest
run: make NightlyTest
- name: Test Memcheck
working-directory: ${{runner.workspace}}/build
shell: bash
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: make ExperimentalMemCheck
run: make NightlyMemCheck

@ -3,12 +3,8 @@ cmake_minimum_required(VERSION 3.0)
set(CMAKE_C_STANDARD 11)
set(TARGET_GROUP test CACHE STRING "Group to build")
# clang
#add_compile_options(-Wall -g -Ofast -march=native -DNDEBUG -Wextra -pedantic -Werror -Wno-unused-result)
# gcc
#add_compile_options(-Wall -g -Ofast -march=native -DNDEBUG -Wextra -pedantic -Werror -Wno-unused-result -Wno-clobbered -Wno-unused-parameter -fno-omit-frame-pointer)
add_compile_options(-Wall -g3 -O0 -Wextra -pedantic -Werror)
add_compile_options(-Wall -Wextra -pedantic -Werror)
add_subdirectory(module_math)
add_subdirectory(module_datastructures)
@ -30,6 +26,3 @@ else()
message(FATAL_ERROR "Given TARGET_GROUP unknown")
endif()
add_custom_target(memcheck
COMMAND ${CMAKE_CTEST_COMMAND}
--force-new-ctest-process --test-action memcheck)