Skip to content

Commit 3c78b26

Browse files
committed
set -O3 as default
1 parent f668111 commit 3c78b26

4 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
- name: Configure
5757
run: |
5858
cmake -S . -B build -G Ninja \
59+
-DCMAKE_BUILD_TYPE=Release \
5960
-DQDATA_USE_TBB=${{ matrix.qdata_use_tbb }} \
6061
-DQDATA_BUILD_BENCHMARKS=ON \
6162
-DQDATA_BUILD_EXAMPLES=ON \

.github/workflows/macos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
- name: Configure
6262
run: |
6363
cmake -S . -B build -G Ninja \
64+
-DCMAKE_BUILD_TYPE=Release \
6465
-DQDATA_USE_TBB=${{ matrix.qdata_use_tbb }} \
6566
-DQDATA_BUILD_BENCHMARKS=ON \
6667
-DQDATA_BUILD_EXAMPLES=ON \

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 3.18)
22

33
project(qdata_cpp VERSION 1.0.0 LANGUAGES CXX)
44

5+
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
6+
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the build type." FORCE)
7+
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS Debug Release MinSizeRel RelWithDebInfo)
8+
endif()
9+
510
option(QDATA_USE_TBB "Link oneTBB for multithreaded qdata/io consumers" ON)
611

712
find_package(PkgConfig QUIET)

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CMAKE ?= cmake
22
CTEST ?= ctest
33
BUILD_DIR ?= build
4-
CONFIGURE_FLAGS ?= -DQDATA_BUILD_TESTS=ON -DQDATA_BUILD_EXAMPLES=ON
4+
CONFIGURE_FLAGS ?= -DCMAKE_BUILD_TYPE=Release -DQDATA_BUILD_TESTS=ON -DQDATA_BUILD_EXAMPLES=ON
55
CTEST_FLAGS ?= --output-on-failure -V
66
QS_EXTENDED_TESTS ?= 1
77
ROWS ?=

0 commit comments

Comments
 (0)