Skip to content

Commit 6b8a9d2

Browse files
try to restructure CMakeLists
1 parent 94308c3 commit 6b8a9d2

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
env:
1010
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
11-
BUILD_TYPE: Debug
11+
BUILD_TYPE: Release
1212

1313
permissions:
1414
id-token: write

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,23 @@ set(AnalysisTreeQA_BUNDLED_AT_VERSION "v2.2.6" CACHE STRING "Bundled AnalysisTre
1919

2020
# by default build optimized code
2121
if(NOT DEFINED CMAKE_BUILD_TYPE)
22-
set(CMAKE_BUILD_TYPE RELEASE)
22+
set(CMAKE_BUILD_TYPE Release)
2323
endif()
2424

2525
if(NOT DEFINED CMAKE_CXX_STANDARD)
2626
set(CMAKE_CXX_STANDARD 17)
2727
endif()
2828

2929
# in DEBUG mode make verbose Makefile
30-
if (CMAKE_BUILD_TYPE MATCHES DEBUG)
30+
if (CMAKE_BUILD_TYPE MATCHES Debug)
3131
set(CMAKE_VERBOSE_MAKEFILE ON)
3232
endif ()
3333

3434

3535
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -ggdb -g -DDEBUG -D__DEBUG -Wall -Wextra")
36+
set(CMAKE_CXX_FLAGS_Debug "-O0 -ggdb -g -DDEBUG -D__DEBUG -Wall -Wextra")
3637
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -ftree-vectorize -ffast-math -DNODEBUG")
38+
set(CMAKE_CXX_FLAGS_Release "-O3 -ftree-vectorize -ffast-math -DNODEBUG")
3739
message(STATUS "Using CXX flags for ${CMAKE_BUILD_TYPE}: ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE}}")
3840

3941
include(ROOT)

0 commit comments

Comments
 (0)